Alternative for 'embed'?
For loading external texture-images I use embed, like:
[Embed(source = "../Assets/Textures/GUI.png")] " private static const GUITextureAtlasTexture:Class;
Somewhere I red that the embed-tag makes apps load low, so
now I want to replace this line for embedding this image from
the library, but I don't get it to work.
Something like:
var GUITextureAtlasTexture:Class;
GUITextureAtlasTexture = getDefinitionByName ("AtlasImage") as Class;
?
Isn't GUITextureAtlasTexture (like in the embed-example) not the same as
the linkage-name of an imported asset?