Skip to content

Choose best way to inform AssetList about assets scale needed #32

Description

@PixelsCommander

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions