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 


User Comments

how bout in reverse
posted by lounge3 on 2008-12-19

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.

how bout in reverse
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
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
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)
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
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 login to post your comment



Back

Knowledge Base Search

Enter keywords below:
Advanced Search
FlashEff 2.0
Create professional flash photo slideshows online

FREE Flash Stuff

Check out these free, fully functional AS3.0 Flash components by Jumpeye:

FlashEff 2.0 Free
(free for non-commercial use)

JC Panorama
(free for non-commercial use)

JC Play List
(fully free)

Basic Menu Pack V3
(free AS3 version)

MCTE V3
(free AS3 version)

JC Player
(free for non-commercial use)

JC Flash Map
(free for non-commercial use)

Flash Bookmarks
(fully free)

ActionScript Bridge AS2-AS3
(fully free)

JS Charts
(free for non-commercial use)

Free Trial Versions

The trial versions do have a major limitation. They will ONLY run into debugger flash player versions, such as the Flash IDE player and the activeX FP used by developers.

Switch from Free Trial version to Full version.

You can switch from Trial to Full versions in a blink of an eye.
See this tutorial in order to find out how.

We accept Google Checkout

Google Checkout Acceptance Mark

Secured by VeriSign