Knowledge Base |
Loader Pro V3
(views: 13830)
The Loader Pro V3 is a professional loader that features scale modes (scale, crop, scale-crop, resize), align modes, built in preloaders and customized transition tweens. Here are all known issues for Loader Pro V3. If you have any questions that you think we should discuss here please let us know.
Access the loader's content
(2008-01-22 - views: 8742)
Q: Can I access directly the content within the Loader component ?
A: The loader component has a property called content. This will give you a reference the loaded content. This means that you can get access to the elements found in the content (like variables, functions, movie clips) and you can event start or stop playing an animation.
Start an animation: myLoader.content.play();
Stop an animation: myLoader.content.stop();
Call a function defined in the content clip: myLoader.content.myFunction();
The attached example uses the loader to load an animation that has a function defined in it.
Files: LoaderAccessContent.zip
Start an animation: myLoader.content.play();
Stop an animation: myLoader.content.stop();
Call a function defined in the content clip: myLoader.content.myFunction();
The attached example uses the loader to load an animation that has a function defined in it.
Files: LoaderAccessContent.zip
User Comments
It is for AS2
posted by negush on 2008-04-14
The example above it is for AS2. For AS3 you would do this a little differently: http://www.jumpeyecomponents.com/knowledgebase/Loader-Pro-V3/Access-the-loader%27s-content~324/.
Login to post your comment










how would you access the loader content with AS2 rather than AS3?
I've been playing with the thumbslider, thumblist an dthis an I can't figure out how to target the contenet that gets loaded in the loader.