Copy link to clipboard
Copied
I am attempting to understand the connection between the dictionary and the class.
In the code below a dictionary is established in the Assets class. This class manages all of the assets in the project. Other classes can request the images in this Assets class. For example, in the following code the Welcome class is requesting a background image from the Assets class: bg = new Image(Assets.getTexture(”BgWelcome”));
But I don't see how these images are automatically placed in the dictionary. I don't see the connection beyond the fact that they are embedded within the class.
FYI, the example uses Starling API's (e.g. texture)
*Code taken from Hungry Hero Tutorial
Copy link to clipboard
Copied
you need to understand the embed directive, Adobe Flex 4.6 * Embedding asset types
Copy link to clipboard
Copied
Thanks. That is useful. Also here's a response I got from the Starling Forum:
The class is Assets
Where it says bitmap = new Assets[name]
It's getting the texture class embedded in that class. You don't need to write this out like in that tutorial. Starling comes with an assetmanager. Give that a read.
Copy link to clipboard
Copied
Also, where do I mark as correct or helpful? That option is not visible like in the older system. I checked "Actions," not there.
Copy link to clipboard
Copied
the first item in the actions dropdown is 'mark as helpful'. at least, that's what i see. also there's 'correct answer' button attached to each message.
Copy link to clipboard
Copied
In the Actions dropdown it says "No actions are available." I've check my profile settings as well and don't see anything to help. I'll contact Adobe to see what the problem is.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now