FlashJS
FlashJS copied to clipboard
Propose mechanism for determining source AssetList for <asset/> tag
Assets scale is nice feature of FlashJS, but there are few issues connected with this.
Assets are loaded with AssetsLists which is object of AssetList class. Every AssetList have to know what scale to use (what folder to use as loading path). And scale can be obtained from pixelScale property of Stage. And we can have few stages on page.
So first question is - what is the best way to pass scale to AssetLoader? Is it ok to have one AssetsList per Stage? There are no any problems if it is. Every Stage would have AssetLoader with particular pixelScale.
But!
We also need
So there are few questions:
1.Choose best way to inform AssetList about assets scale needed.
2.Propose mechanism for determining source AssetList for