I've recently taken on a project which is loading SWFs into the child SWFs which not only is messy but also slow and incomprehensible to debug.
Therefore, I'm trying to find the correct procedure to call back and forth between a parent and child SWF (bubbles). I'm assuming this is the right way to go about this: loading/unloading and moving playhead.
I hear the dispatchEvent() function is used from child to parent? but I'm not sure how this is interpreted. Would I need to use an addEventListener() in the parent to listen out for the dispatchEvent()?
Can you tell me how I would tell the parent SWF to move the playhead to another position on the parent timeline?
Would I use?:
child_btn.AddEventListener(MouseEvent.MOUSE_DOWN, movetolabel)
function movetolabel() {
dispatchEvent(parent.gotoAndStop("label"));
}