Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Use your parent swf as the controller for all of your child swf's.</p> <p>When a child swf wants to communicate to another child, send an event or call up to the parent swf and then back down to the other child swf that you want to receive the call.</p> <p>Though in your example it sounds more like you're having a layering issue than a communication issue. If you want to assure that when you click next or back that if the ticker is active, it stays active, then be sure to load that new swf in a DisplayObject that is behind the ticker DisplayObject. In this instance both DisplayObjects are your loaded swf's.</p> <p>Take a look at the getChildAt and addChildAt methods of DisplayObject. The first DisplayObject added to the Stage or another DisplayObject will have an index of 0, the second will be 1 and so and so forth. Using that you should be able to correctly layer your ticker to always stay on top and be displayed when you want it to be</p> <p><strong>Update from your comments:</strong> <br/> You could look into an Object called LoaderContext. It has a property called parameters on it which is an object you just pass along with the load request for your SWF.</p> <p><code> var lc:LoaderContext = new LoaderContext; <br/> var thisLoader:Loader = new Loader(); <br/> lc.parameters = { "tickerHeight" : "myVariable" }; <br/> thisLoader.load(new URLRequest(clips[swf_no]), lc); </code></p> <p>Then in the child swf try: <br/> <code>trace(loaderInfo.parameters.tickerHeight);</code></p> <p>I forgot to add this as well, your compiled SWF target must be at least version 10.2 or higher to use LoaderContext</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload