Dispatching and Event in Parent SWF & Receiving it in Child SWF

Hi All...
      I  would like to receive an event(Dispatchd in Parent swf) in Child SWF,  the bold italic text represents the piece of coding i require help with
     //in PARENT SWF i have -----------------------------
        dispatchEvent(new Event("CloseDoors"))
    // in Child SWF --------------------------------
       here i need a code that catches the event dispatched in parent.addEventListener("closeDoors",closedoor)
       Please let me know if there are alternative ways to do it. I think some  people prefer to listen to the event also in Parent file and run
       the function in CHild from parent file....i would like to learn the  best practive to INFORM CHILDREN through a PARENT FILE...
     Thanks.

Perfect....just to make sure i m taking care of it in a nice practical way....here is how i learned to access a file located in Child (researching other posts)
is this the way you recommend it?
(LoaderName.content as MovieClip).functionName(new Event("whatever"))
and in Child File we have
function functionName(e:Event)
i have seen other ways of calling a function in Child Swf , like using EmbedSWF and etc. wanna make sure which one is a better practice. Thanks

Similar Messages

  • Parent swf call function in Child swf not working

    Hi all,
    I'm having a problem with this and I just can't figure it out
    :( (I've been trying different things and staring at it for hours
    and I'm losing my mind...)
    So I have a Parent swf that loads a Child swf (this goes
    without any problems), but I want the Parent to call a function in
    the child, now this is where it goes wrong...
    The function the Parent has to call is named "lookupcar" and
    needs to give the value "wagen" with it. The problem I think is
    that the Parent wants to call the function but it still needs to
    load (correct me if I'm wrong). Is there a way to check if the
    Child swf is loaded completely before trying to call the function?
    Could you give me an example of this please? Or any other
    suggestions on what goes wrong?
    Code in the Parent
    root.inhoud.createEmptyMovieClip("thetext", "thetext",
    this.getNextHighestDepth());
    root.inhoud.thetext.loadMovie("uitrusting-wagenpark.swf");
    root.inhoud.thetext.lookupcar(wagen);
    Code in the Child
    (the function lookupcar)
    _global.lookupcar = function(carnr:String){
    trace("LOOKUPCAR, with car nr: " + carnr);
    Thanks in advance for all the help.

    Perfect....just to make sure i m taking care of it in a nice practical way....here is how i learned to access a file located in Child (researching other posts)
    is this the way you recommend it?
    (LoaderName.content as MovieClip).functionName(new Event("whatever"))
    and in Child File we have
    function functionName(e:Event)
    i have seen other ways of calling a function in Child Swf , like using EmbedSWF and etc. wanna make sure which one is a better practice. Thanks

  • Problems accessing child swf from parent class

    First off: Hi. I'm new - to the forum and to Flash.
    I'm currently writing a flash app that requests a XML feed
    from a Java controller and loads child swfs into various parts of
    the stage based on the settings/URL details received from the XML
    feed.
    Its nearly there and I've got my head round a couple of weird
    things, but theres one thing left that I've found impossible to
    solve. Once the loader class has loaded the swf, it can't access
    its methods or set its variables and the child can't access the
    parent either (or access the parent's variables full stop). From
    what I've read this should be possible. Heres some of my code plus
    pseudo code:
    Note the Panel class is not linked to a symbol and uses
    composition to act like a movie clip, rather than inheritance.
    quote:
    class Panel{
    function Panel(owner:MovieClip, insName:String,
    depth:Number){
    initiates properties etc....
    panelMovie = owner.createEmptyMovieClip(insName,depth);
    listener.onLoadComplete = mx.utils.Delegate.create(this,
    scheduleModule);
    loader.addListener(listener);
    loader.loadClip(moduleX.url, panelMovie);
    function scheduleModule(){
    trace(panelMovie.key);
    trace(panelMove.keyTest());
    panelMovie.key = "dave";
    trace(panelMovie.key);
    Child swf:
    quote:
    var key:String = "test";
    As you can see I create an empty movieclip which I store a
    reference to in this class under the field "panelMovie". I then use
    this (instead of target_mc like you might do with an event handler)
    to try to access the child swf. The output is:
    trace(panelMovie.key); = "test" (Works fine)
    trace(panelMove.keyTest()); = (Nothing returned)
    panelMovie.key = "dave";
    trace(panelMovie.key); = "test" (Previous line = no effect)
    Is this something related to using a class? Really would be
    preferentially to keep all code outside of the fla.
    I've also tried a lot of different combinations of _root,
    _parent and _levelx. None of which I truly understand.
    Any help would be much appreciated! Plus any good tutorial
    links on timeline and referring to objects in it!
    (Couldn't find the code tag/button...)

    >>trace(panelMove.keyTest()); = (Nothing returned)
    You have panelMove here instead of panelMovie
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Child of child swf not being unloaded

    I loaded an swf into an swfLoader using a bytearray. The child swf being loaded loads another swf within itself. When I run swfLoader.unloadAndStop() it removes the child swf but not the child swf's child. How can I unload both?

    You will have to custom code a way to tell the child SWF to unload its
    child.

  • Dispatching and listening events in different swf in flex

    I have two swf files.
    1.Main Application swf file.
    2.Module swf file
    If i dispatch an event in main application swf file i am unable to listen in module swf file.
    Can any one propose me a solution for this.

    You can use this example:
       private function ready(event:ModuleEvent):void
        var c:UIComponent = event.currentTarget.child as UIComponent;
        c.addEventListener(events.system_events.MODULE_UPDATED, updated, false, 0, true);
    <mx:ModuleLoader id="mod" x="0" y="0" ready="ready(event);" error="load_error(event);" width="100%" height="100%" />

  • How can I remove a child swf and stop all sounds when parent closes?

    Hi All,
    I am new to actionscript 3 and trying to learn as I go. The problem I am having is the following:
    I have a carousel of images that load an external swf movie with a FLVPlayback component on it. The problem is that when the external swf unloads the sound of the FLVPlayback component continues to play. I am using a carousel component I found online to load the images and each image loads an external swf file. here is the code for it.
    import com.carousel.DegreeCarousel;
    import com.carousel.data.CarouselDO;
    import com.carousel.data.AngleDO;
    import com.carousel.data.ItemDO;
    // DEFINING THE CAROUSEL OBJECT
    var carouselSettings:CarouselDO = new CarouselDO();
    carouselSettings.radiusX = 300;
    carouselSettings.radiusY = 0;
    carouselSettings.fov = 50;
    carouselSettings.transitionTime = 1;
    carouselSettings.ease = "easeInOutQuint";
    carouselSettings.useToolTip = 0;
    carouselSettings.useBlur = 1;
    carouselSettings.maxBlur = 8;
    carouselSettings.reflectionAlpha = 0.2;
    // DEFINING ANGLES SETTINGS
    var angleSettings_arr:Array = new Array();
    angleSettings_arr[0] = new AngleDO({angle:0,alpha:1,scale:0.5});
    angleSettings_arr[1] = new AngleDO({angle:90,alpha:1,scale:1});
    angleSettings_arr[2] = new AngleDO({angle:180,alpha:1,scale:0.5});
    // DEFINING THE ITEMS
    var prefix = "content/thumbs/"
    var galleryItems:Array = new Array();
    galleryItems[0] = new ItemDO({thumb:prefix + "image_1.jpg", content:prefix + "swf1.swf", contentType: "flash"});
    galleryItems[1] = new ItemDO({thumb:prefix + "image_2.jpg", content:prefix + "swf1.swf", contentType: "flash"});
    galleryItems[2] = new ItemDO({thumb:prefix + "image_3.jpg", content:prefix + "swf1.swf", contentType: "flash"});
    // PLACING THE CAROUSEL TO STAGE
    var carousel:DegreeCarousel = new DegreeCarousel(carouselSettings,angleSettings_arr,galleryItems);
    carousel.x = stage.stageWidth * .5;
    carousel.y = stage.stageHeight * .5;
    this.addChild(carousel);   
    // KEYBOARD NAVIGATION
    // KEYBOARD EVENTS
    stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);   
    function keyDownHandler(e:KeyboardEvent):void
        // left
        if(e.keyCode == 37)
            carousel.left(1);
        // right
        if(e.keyCode == 39)
            carousel.right(1);
        // top
        if(e.keyCode == 38)
            carousel.prevCycle();
        // Down
        if(e.keyCode == 40)
            carousel.nextCycle();
        // Space
        if(e.keyCode == 32)
    The external movie loads fine. Then the external swf calls for a second swf containing a video. This is the code that is used to load the swf:
    import flash.net.URLRequest;
    import flash.display.Loader;
    import flash.events.Event;
    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    var myVideo:URLRequest = new URLRequest("myvideo.swf");
    var video:Loader = new Loader();
    video.load(myVideo);
    this.addChild(video);
    When the carousel unloads, it unloads both movies but the sound keeps on playing.
    Is there any way to stop the sound from keep playing?
    Thank you very much!!
    -M

    You want to stop the audio from playing and also downloading more video/audio if it is still downloading when you go to a new keyframe where the video display/component or mp3 player is removed from the stage because it's keyframe ended or do not exist anymore but you still hear the audio.
    Add an event listener to your video playback component that calls a function when the flash player tries to remove the video plaer from the stage that stops the netstream or at least stops/pauses the video playback.
    [link removed]
    //sample NetConnection and NetStream classes when the video player is removed from the stage tell the NetStream to stop playing or downloading the content with .close();
    var connection:NetConnection = new NetConnection();
    connection.connect(null);
    var stream:NetStream = new NetStream(connection);
    addEventListener(Event.REMOVED_FROM_STAGE, videoRemovedFromStage);
    function videoRemovedFromStage(e:Event){
       stream.close();

  • I have lost nearly all my photos and events.  I received a message effectively saying that I need to upgrade from an old base.  I think I may have tried to open an event that was stored in iPhoto Buddy a few days ago.

    I have lost nearly all my photos and events.  I received a message effectively saying that I need to upgrade from an old base.  I think I may have tried to open an event that was stored in iPhoto Buddy a few days ago.  iPhoto Buddy is not supported in Lion.  How can I retrieve my phjotos?

    What version of iPhoto?
    Assuming 09 or later...
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • [svn:osmf:] 17565: Fix FM-937: ProxyElement dispatches trait events for blocked and overridden traits.

    Revision: 17565
    Revision: 17565
    Author:   [email protected]
    Date:     2010-09-02 17:30:08 -0700 (Thu, 02 Sep 2010)
    Log Message:
    Fix FM-937: ProxyElement dispatches trait events for blocked and overridden traits.  Add unit test.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-937
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/elements/ProxyElement.as
        osmf/trunk/framework/OSMFTest/org/osmf/elements/TestProxyElement.as

  • When attempting to add an event to my calendar and I press "done," I receive a message that reads "Cannot Save Event." "That event does not belong to that event store." What can I do remedy this issue?

    When attempting to add an event to my calendar and I press "Done," I receive a message that reads "Cannot Save Event," "That event does not belong to that event store." How do I remedy this problem so I can add events and appointments to my calendar?

    i am having the exact same problem, same messages (no end date set; cannot save; no calendar set; event does not belong to that event store."
    it is unbelievable to me that this issue existed so long ago and hasn't been fixed. I just bought my first apple product (iphone4s) and am ready to toss it. Despite hours of searching on these forums I have been unable to find out how to fix my calendar. I have rebooted, adjusted settings to no avail. without a calendar, i can't use this product. Also, i am not technologically brilliant and can't handle the advanced fixes that some people recommend.
    question, is apple a product for the ignorant like me? or should i go back to nuts and bolts pc?
    all i really want is to be able to use the calendar without "uploading, reprogramming, contacting support offices for 3 hours, contacting network administrators, upgrading, switching fonts, changing operating systems.... etc. " I am just a regular person who needs a portable calendar.
    sorry to vent, but can anybody tell me (in simple terms) how to get my calendar to accept a simple apointment?
    thank you.

  • Parent SWF controlling Child SWF variables

    1) The code below works but the browser sends an annoying
    alert message
    “Received Parent Message” and you are obliged to
    click OK before the program can run. How can it be fixed ?
    2) Why this code needs to use the
    ExternalInterface class if the Child SWF gets loaded and
    becomes incorporated in the Parent SWF ?
    3) Is there a
    simpler and more straightforward way for a Parent SWF to
    communicate with a Child SWF ?
    package
    import flash.external.ExternalInterface;
    import flash.display.Sprite;
    import flash.text.*;
    public class ChildMovie extends Sprite
    public function ChildMovie():void
    public function alert(msg:String):void
    ExternalInterface.call('alert', msg);
    txt.text = msg;
    package
    import flash.display.Loader;
    import flash.net.URLRequest;
    import flash.events.Event;
    import flash.display.LoaderInfo;
    import flash.display.Sprite;
    public class ParentMovie extends Sprite
    public function ParentMovie():void
    var loader:Loader = new Loader();
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    onLoadComplete);
    loader.load(new URLRequest('ChildMovie.swf'));
    private function onLoadComplete(e:Event):void
    var loaderInfo:LoaderInfo = e.target as LoaderInfo;
    addChild(e.target.content);
    var swf:Object = loaderInfo.content;
    swf.x = 75;
    swf.y = 50;
    swf.alert('Received Parent Message');

    Hi,
    You can launch the SWF in new window with navigateToURL() available in flash.net package by passing the path of SWF as parameter to function as
    navigateToURL(new URLRequest(domainPath + "/appmanager/login.swf"));

  • How to dispatch custom events from an item renderer used for Datagrid Column

    Hi,
    I am using an Item Renderer for a Data Grid Column and in that mxml, I am dispatching a custom event with data.
    But the main mxml which has the DataGrid is not able to resolve the event. How can I solve this?
    Thanks

    Hi,
    This is the constructor for Event.
    public function Event(type:String, bubbles:Boolean  = false, cancelable:Boolean  = false)
    When you created your custom event after extending from Event, for the parent container receives the event, the bubbles property must be set to true.
    Please check if you have done so. That should solve the problem. Let me know if it doesn't.
    Nishad

  • Dispatching Custom Events Help

    Hello Everyone,
    I am just learning how to handle custom events, and after spending couple of days tring to understand the process, I am unable to get it going. What I am trying to do is to write a Two Button (component/swf). So when I need to utilize this component in other projects, I can simply load the the swf and be able to fire the buttons.
    I have two button objects on the stage, and I would like these two button object to fire custom events when the parent component is loaded as swf in other projects. Perhaps, I am going all wrong about what I am tring to accomplish here, I would highly appreciate your help.
    After some research, I concluded that I will need to employ Custom Event(s) going for my component. I spent hours on google and have not been able to get it working.
    Here is my code:
    ============================
    CustomEvent Class
    ============================
    package com.custom.apps
        import flash.events.Event;
        public class CustomEvent extends Event
            public static const CUSTOM:String = "custom";
            public var arg:*;
            public function CustomEvent(type:String, customArg:*=null, bubbles:Boolean=false, cancelable:Boolean=false)
                super(type, bubbles, cancelable);
                this.arg = customArg;
            public override function clone():Event
                return new CustomEvent(type, arg, bubbles, cancelable);
            public override function toString():String
                return formatToString("CustomEvent", "type", "arg",    "bubbles", "cancelable", "eventPhase");
    ============================
    DISPATCHING THE EVENTS
    ============================
    import com.custom.apps.*;
    btn.addEventListener(MouseEvent.CLICK, clickHandler);
    function clickHandler(e:MouseEvent):void
        dispatchEvent(new Event(CustomEvent.CUSTOM, customHandler));
        //trace("FIRED");
    function customHandler(e:CustomEvent):void
        trace(e.target);
        trace('hello');

    Kalisto,
    I appreciate your help. Do I have this right? So I can build a navigation component with two links:
    LINK1 | LINK2
    then I load this navigation component/swf into another project and when I click on either of the links, it will dispatch a CUSTOM EVENT and when the event is dispatched, lets say I have a  function (sayHello) listening for that particular event and when the CUSTOM EVENT is dispatched when one of the navigation component's link is clicked the (sayHello()) function would fire itself.
    Can this be done? Am I on the right track?
    I have been at it for couple of days now, I am able to dispatch the event but don't know how to have a function listen for the events. I would highly appreciate it if you can have look at my code.
    Thanks a lot

  • Order of elements and events.

    INTRO
    Hi Oracle community.
    A while ago I started a thread here on the forum where I had put three different subjects to be treated. The user jsmith guided me saying that I was supposed to separate things, dividing each subject in a separate thread. The original discussion is at the following link:
    Interesting things, however, unknown? StackPane, animations and filters.
    ABOUT
    So in this discussion, I will be talking about input events and maybe about event filters. I created a JavaFX 8 (b123) application that checks the mouse click on certain nodes. Basically I have a panel of buttons. Behind this panel, I have a scroll pane with rectangles. The rectangles are contained within a Group, and the buttons are in a VBox. The Group is set as ScrollPane content. VBox and ScrollPane are within a StackPane, which becomes the root of scene graph. If we observe the nodes tree, we'll find the following scenario:
    IMAGE
    Here is my source code:
    import javafx.application.Application;
    import javafx.event.EventHandler;
    import javafx.geometry.Pos;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.ScrollPane;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.StackPane;
    import javafx.scene.layout.VBox;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Rectangle;
    import javafx.stage.Stage;
    public class ScrollTest extends Application
        //                                                                                                       MAIN
        public static void main(String[] args)
            Application.launch(args);
        //                                                                                                 INSTÂNCIAS
        // CONTROLS
        private Rectangle[] rectangles;
        private ScrollPane scrollP;
        private Button[] buttons;
        // LAYOUTS
        private StackPane root;
        private Group group;
        private VBox vbox;
        //                                                                                                  INÍCIO FX
        @Override public void start(Stage estagio) throws Exception
            this.iniFX();
            this.confFX();
            this.adFX();
            this.evFX();
            Scene cenario = new Scene(this.root , 640, 480);
            estagio.setScene(cenario);
            estagio.setTitle("Programa JavaFX - RDS");
            estagio.show();
        /** Just instantiate JavaFX objects.*/
        protected void iniFX()
            // CONTROLS
            this.rectangles = new Rectangle[5];
            this.scrollP = new ScrollPane();
            this.buttons = new Button[6];
            // LAYOUTS
            this.root = new StackPane();
            this.group = new Group();
            this.vbox = new VBox();
        /** Just sets the JavaFX objects.*/
        protected void confFX()
            // CONTROLS
            for(int count = 0 ; count < this.rectangles.length ; count++)
                this.rectangles[count] = new Rectangle();
                this.rectangles[count].setWidth(Math.random() * 100 + 20);
                this.rectangles[count].setHeight(Math.random() * 100 + 20);
                this.rectangles[count].setFill(Color.rgb((int) (Math.random() * 255) , (int) (Math.random() * 255) , (int) (Math.random() * 255)));
                this.rectangles[count].setTranslateX(Math.random() * 600);
                this.rectangles[count].setTranslateY(Math.random() * 600);
                this.rectangles[count].setRotate(Math.random() * 360);
            for(int count = 0 ; count < this.buttons.length ; count++)
                this.buttons[count] = new Button("Button - " + count);
            // this.scrollP.setVbarPolicy(ScrollBarPolicy.ALWAYS);
            // this.scrollP.setHbarPolicy(ScrollBarPolicy.ALWAYS);
            this.scrollP.setPrefSize(400 , 400);
            // LAYOUTS
            this.vbox.setAlignment(Pos.CENTER);
            this.vbox.setSpacing(20);
            // This doesn't solve my problem.
            // this.vbox.setMouseTransparent(true);
        /** Just create the realtion between nodes, and the root.*/
        protected void adFX()
            for(int count = 0 ; count < this.rectangles.length ; count++)
                this.group.getChildren().add(this.rectangles[count]);
            for(int count = 0 ; count < this.buttons.length ; count++)
                this.vbox.getChildren().add(this.buttons[count]);
            this.scrollP.setContent(this.group);
            this.root.getChildren().add(this.scrollP);
            this.root.getChildren().add(this.vbox);
        /** Just add some events to some nodes for debugging.*/
        protected void evFX()
            this.vbox.setOnMousePressed(new EventHandler<MouseEvent>()
                @Override public void handle(MouseEvent e)
                    System.out.println("Mouse pressed inside VBox.");
            this.scrollP.setOnMousePressed(new EventHandler<MouseEvent>()
                @Override public void handle(MouseEvent e)
                    System.out.println("Mouse pressed inside ScrollPane.");
            if(this.rectangles.length > 0)
                this.rectangles[0].setOnMousePressed(new EventHandler<MouseEvent>()
                    @Override public void handle(MouseEvent e)
                        System.out.println("Rectangle pressed.");
                        rectangles[0].setFill(Color.rgb((int) (Math.random() * 255) , (int) (Math.random() * 255) , (int) (Math.random() * 255)));
    THE PROBLEM
    I wish I could click the mouse on VBox buttons, but also in the scroll pane, and in it's internal contents (the rectangles). I tried changing the VBox mouseTransparent property to true, and modify mouseTransparent to false on each VBox button, but that did not work. I've been reading the JavaFX documentation talking about routing events, and found the following:
    The route can be modified as event filters and event handlers along the route process the event. Also, if an event filter or event handler consumes the event at any point, some nodes on the initial route might not receive the event.
    Could it be that VBox is filtering events so they do not reach ScrollPane? Or is this being done by StackPane in some other manner? Does anyone have any idea what I could do?
    In any case, I thank you for your attention.

    You might need to modify the event dispatch tree so that the events get beyond the VBox. I'm not saying this is the right thing to do, but something worth looking at.
    root.setEventDispatcher(new EventDispatcher() {
    @Override
    public Event dispatchEvent(Event event, EventDispatchChain tail) {
    tail.append(group.getEventDispatcher());
    return tail.dispatchEvent(event);
    There is some info on event processing at Handling JavaFX Events: Processing Events | JavaFX 2 Tutorials and Documentation

  • Child .swf controlling parent timeline

    Hello Captivate Heroes,
    I've searched around, and can't seem to find any solid info on an issue my team is having. I'm a bit of a noob when it comes to Javascript, so I apologize if this question is too basic for this forum.
    Is it possible for an embedded .swf (created in Captivate) to control the main timeline in a parent .swf? Consider the example below:
    1) This window is an embedded .swf (another captivate file, which I’ll refer to as the “child”) that has an interactive walkthrough. It loads and begins playing immediately. I want users to complete this module and all interactions in it before continuing to the next slide in the “parent” file. Essentially, I want either the child or the parent timeline to play, but never both at the same time.
    2) This is our normal continue button, and I don’t want it appearing until 1 has been completed.
    My solution was to add a javascript call on the first slide of the child file that tells the parent file to pause its timeline (something like _root.rdcmdPause=1;). Then, do the opposite on the last child slide ( _root.rdcmdResume=1;). In this way, the parent slide would essentially pause on its first frame (which doesn’t have an active continue button) while the child animation continues to play. However, this isn’t working. It’s been a really long time since I’ve scripted, so I’m very rusty. Is that the proper way to manipulate parent variables in a child file? Do you have any other ideas on how to accomplish this task?
    I have a backup solution -- providing a "password" at the end of the child animation, which users can use to unlock the continue button. I'd rather use a more graceful solution
    Thank you in advance,
    Jamie

    Hi Jamie,
    I don't think JavaScript is going to help you here.  You need to be doing this in ActionScript 3. 
    For the non-scripting part, you can control the Captivate movie using system variables.  To pause the main slide, you could assign rdcmdPause=1 on the Slide Entry action.  You may want to adjust the slide transition to none so that it won't look faded out when it pauses the movie.  You can also show/hide items on the slide using the timeline, but it sounds like you won't really know when the Learner will be done with the interactive child .swf. 
    From what you described, it sounds like the Child .swf (#1) needs to communicate with other objects on the slide... mainly the continue button (#2).  In order to do that you'll most likely need to make the child .swf #1 into a widget so that it can communicate with the main movie and other objects on the slide.  I would suggest 3 possibilities:
    1.  Learn to use a widget framework such as Widget Factory or CpGears to make this possible
    2.  Take a look at the Infosemantics Event Handler Widget.  Not sure if it will meet all your needs, but it's worth a look.
    3.  Hire a Captivate Widget Developer to make this possible... and yes I am a Widget Developer (shameless plug )
    Hope that helps,
    Jim Leichliter

  • Problem:  Unable to call a function in parent swf from the child swf.

    I am working on a site right now that has a parent loader
    (all it contains are the menu bar [which is as3 tweened] and the
    functions for calling all of the other pages.) The problem that I
    am having right now, are some of the internal or child pages, need
    to call functions that are in the parent loader. For what ever
    reason, I am unable to do any of that.
    I have attached the code so you can look at that.
    Let me see if I can explain it any better.
    The code I just posted is for the Main Stage swf called
    loader.swf. It has the menu, and all the functions that control the
    menu's movement and when to load all the other swfs. The easiest
    way for me to ask this, is to show you.
    click
    http://dev.locallinux.com/mystictan/layout2.html
    When you get there, you will see the menu bar, and it is
    loading home.swf onto the stage behind the menu.
    Mouse over "The Perfect Tan" and click on "1: Base"
    You will notice it just loaded a new swf called ptbase.swf.
    Well in that swf is a button for "Products" That button
    basically needs to take you to "Products > 1: Base" on the menu
    (not working yet, I know. But theres no point in me making that,
    until I could get this working"
    What I would like is when you click on "Products" in
    ptbase.swf, it calls the function clickedProductsBase(), which does
    its thing. But that function is back in the loader.swf. Does that
    make sence?
    What am I missing here?

    RyanORo, thank you very much for your response.
    I try that, and I get this sort of error when I click on it:
    TypeError: Error #1006: fwd is not a function.
    at ptbase_fla::MainTimeline/testing()
    I know all that code that I posted was a bith much, but here
    is the movie loading part:
    function loadComplete(event:Event):void
    loaderbar.visible = false;
    mainbody.removeChild(thisMC);
    thisMC = MovieClip(myloader.content);
    myloader.unload();
    mainbody.addChild(thisMC);
    thisMC.gotoAndStop(1);
    TransitionManager.start(thisMC, {type:Fade,
    direction:Transition.IN, duration:5, easing:Strong.easeOut});
    mainbody is an empty mc under the menu, so that the loaded
    swf file appears under the menu.
    You know what, scratch all that . *MOOWHA* I could KISS you
    right now. "(parent as MovieClip).clickedProductsBase()" did not
    work because it was calling it out of the wrong parent. Just did
    "(this.parent.parent as MovieClip).clickedProductsBase()" and that
    did the magic I needed. Thanks...

Maybe you are looking for

  • Two user profiles on my iMac but only one can connect to the internet

    Hi, I got the most recent upgrade for Lion and installed it.  I have two user profiles on my iMac and now, only one of them can connect to the internet yet both appear to have gotten the full upgrades.  Any ideas why this might be happening? Thanks!!

  • Newbie looking to get started in Mac programming

    Hi, I have a handful of ksh scripts written for Leopard, I would like to create an interface/wrapper in C++, ref existing system prefs, to bring everything together under a suite of commands and eventually rewrite the shell scripts into C++. Is there

  • From AE to SWF : some general doubts

    Hello, I have made a little project with After Effects CS3 : some animated text who 'jazz' for about 4 seconds and then turns to its original position. In order to upload it to my site, I exported it into .swf format, and all worked OK, even if the s

  • C5: simply copying mp3-files via pc and usb-cable

    I used an USB-cable and copied _folders_ with mp3-files in the music folder. The files are not found, when I try to play them. Then I copied 1 mp3-file directly under the music folder and the mp3-file could be played, but the ID3-tags were not recogn

  • HAVING A HARD TIME WITH SPRY MENU BAR - #2

    To V1: Thanks for the answer - it took care of the problem. After I changed the links in the site to absolute,  another problem occurred: the links only function  on the uploaded site, not in DW (when I click on "preview in browser" in DW, the link i