FlashJS icon indicating copy to clipboard operation
FlashJS copied to clipboard

Propose mechanism for determining source AssetList for <asset/> tag

Open PixelsCommander opened this issue 12 years ago • 0 comments

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 tag for DOM interface and this can be otained with help of global AssetsList. This breaks proposition of one AssetList per Stage!

So there are few questions:

1.Choose best way to inform AssetList about assets scale needed. 2.Propose mechanism for determining source AssetList for tag. Will it be global AssetList?

PixelsCommander avatar Mar 14 '13 17:03 PixelsCommander