Knowledge Base |
Important! All new questions are usually answered within the next business day.
Loader Pro V3
(views: 9260)
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-02-07 - views: 5649)
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 Loader class instance that loaded the 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.contentLoaderInfo.content.play();
Stop an animation: myLoader.content.contentLoaderInfo.content.stop();
Call a function defined in the content clip: myLoader.content.contentLoaderInfo.content.myFunction();
The attached example uses the loader to load an animation that has a function defined in it.
Files: LoaderAccessContent_AS3.zip
Start an animation: myLoader.content.contentLoaderInfo.content.play();
Stop an animation: myLoader.content.contentLoaderInfo.content.stop();
Call a function defined in the content clip: myLoader.content.contentLoaderInfo.content.myFunction();
The attached example uses the loader to load an animation that has a function defined in it.
Files: LoaderAccessContent_AS3.zip
User Comments
how bout in reverse
@lounge3
Here's an example from our knowledge base that might help you out: http://www.jumpeyecomponents.com/knowledgebase/Loader-Pro-V3/Access-loader-parent-from-within-loader-content~1417/.
posted by negush on 2008-12-26
@lounge3
Here's an example from our knowledge base that might help you out: http://www.jumpeyecomponents.com/knowledgebase/Loader-Pro-V3/Access-loader-parent-from-within-loader-content~1417/.
as2 reading content
I m familiar with the example that allows you to place 2 figures in the text boxes; press a button and then calculate the figure in the parent .swf
I can't seem to get the process to work, by placing the button in the parent clip itself, to wit: the child swf just contains the text boxes and the parent swf contains the calculate button and the final text box in the parent swf. Is this possible?
posted by rohan4 on 2009-03-17
I m familiar with the example that allows you to place 2 figures in the text boxes; press a button and then calculate the figure in the parent .swf
I can't seem to get the process to work, by placing the button in the parent clip itself, to wit: the child swf just contains the text boxes and the parent swf contains the calculate button and the final text box in the parent swf. Is this possible?
reading the content of the loader
@ rohan4
First you will have to create two instance of Text Imput inside the child swf and name them with the same name in the AS2 example and then you will have to replace inside the "calculate_btn.onRelease" function these two lines of code :
var aNum:Number = parseFloat(aNumber.text);
var bNum:Number = parseFloat(bNumber.text);
with these two lines of code:
var aNum:Number = parseFloat(myLoader.content.aNumber.text);
var bNum:Number = parseFloat(myLoader.content.bNumber.text);
posted by florodebat on 2009-03-18
@ rohan4
First you will have to create two instance of Text Imput inside the child swf and name them with the same name in the AS2 example and then you will have to replace inside the "calculate_btn.onRelease" function these two lines of code :
var aNum:Number = parseFloat(aNumber.text);
var bNum:Number = parseFloat(bNumber.text);
with these two lines of code:
var aNum:Number = parseFloat(myLoader.content.aNumber.text);
var bNum:Number = parseFloat(myLoader.content.bNumber.text);
OnComplete (TweenLite)
Hi, I made basic stage with buttons, i´d like to load external SWFs wia Loader Pro V3 AS3. Every external swf content fnuction myFunction() witch i call through myLoader.content.contentLoaderInfo.content.myFunction(); from basic stage, problem is when i clicking on button and call external swf which contains OnComplete(TweenLite, or Tweener) in OUTPUT is Error #1009: Cannot access a property or method of a null object reference. And i don´t know where is problem ...it is Loader problem or Tweener problem or scripting problem. Thank you
posted by fsd80 on 2009-10-23
Hi, I made basic stage with buttons, i´d like to load external SWFs wia Loader Pro V3 AS3. Every external swf content fnuction myFunction() witch i call through myLoader.content.contentLoaderInfo.content.myFunction(); from basic stage, problem is when i clicking on button and call external swf which contains OnComplete(TweenLite, or Tweener) in OUTPUT is Error #1009: Cannot access a property or method of a null object reference. And i don´t know where is problem ...it is Loader problem or Tweener problem or scripting problem. Thank you
write to support
I am not sure that issue is LoaderV3 related. However please open a new support ticket attach your source files along with a detailed description and the order Id and someone will get back to you as soon is possible.
http://www.jumpeyecomponents.com/support/open.php
posted by florodebat on 2009-10-27
I am not sure that issue is LoaderV3 related. However please open a new support ticket attach your source files along with a detailed description and the order Id and someone will get back to you as soon is possible.
http://www.jumpeyecomponents.com/support/open.php
Login to post your comment



is it possible to have a loaded MC use a function to control an MC in the parent stage?
for example: I have an swf file loaded with loaderPro into the main stage. when a function is called within this swf file, i'd like it to trigger a function from the main stage.
hard to explain, but i think its the same idea as the previous answer....just in reverse.