Reputation: 4860
I need to load (dynamically) an image stored in the library of Adobe Flash to the loader component. So far, i have imported this image to the library and exported it to ActionScript under the linkage section. I have named its identifier as well.
I am using ActionScript 2.0.
Upvotes: 0
Views: 1791
Reputation: 119
Well, as long as your image is in the library, there's no need to use a Loader component. You should use it to load external ressources, not already existing one.
In your case, instead of using a loader, you can simply do
var myLoadedImage = myContainer.attachMovie( "imageLinkageId", "customImageInstanceName", myContainer.getNextHighestDepth());
Upvotes: 2