Control of swf in a mc to a btn in an another mc

I'll try to explain as clearly as possible. I use flash mx 2004 pro.
I have a master movie named movieMaster.fla.
I have 4 other nominated films: 1. silentNight911.fla 2. militaryTribute.fla 3. spaceTribute.fla 4. thingsThat.fla. all have accompanying the .swf files.

Here's what I want:
movieMaster has 4 buttons loaded into a clip of menu that point towards a framework called 'openCurtain '. On this frame is a clip with a second animation 2 (he draws opens a curtain).

At the end of the animation, the last image load a mc named holder_mc and as to load the requested movie. My problem; How to load the holder_mc with the film according to the button that was clicked in the menu mc on the movieMaster without having to make a mc openCurtain for each film? I suppose it's possible, or do I have to create a mc openCurtain for each film?
Select this option.

I finally thought to it. Sorry it took so long to reply to this message. but thanks e1 which looked at him. It was probably confused say least. but you can consider this closed post. Thanks again. Mark

Tags: Adobe Animate

Similar Questions

  • Control loaded swf on the main timeline

    Hello

    I'm working on loading external swf files for ios. I am able to load swf files and assembled visible or invisible in different settings. I have trouble controlling the swf files loaded on the main timeline. Specifically, I would like to have a button on the main timeline, that when you click on will move a swf loaded to frame 1.

    Here is a code that loads a swf file:

    var myLoader1:Loader;

    var loaderContext1:LoaderContext = new LoaderContext (false null, ApplicationDomain.currentDomain),

    if(myLoader1 == null)

    {

    myLoader1 = new Loader();

    addChild (myLoader1);

    }

    myLoader1.load (new URLRequest("folder/file1.swf"), loaderContext1);

    myLoader1.visible = true;

    backbutton.addEventListener (MouseEvent.MOUSE_DOWN, backbutton1);

    function backbutton1(myEvent:MouseEvent):void {? myLoader1.gotoAndStop (1) ;}}  (this line does not work)

    (Once I load file1.swf, in the file1.swf I click a next button to move on to different periods.) My question is: hHow do I code the "backbutton" on the main timeline so that it causes the file1.swf to go to frame 1?)

    Thank you for your help.

    After loading is complete (and assuming that you load an as3 swf), you can use:

    MovieClip (myLoader1.content) .gotoAndStop (1);

  • Control a SWF from Flex file?

    I have a flex application with a stack of view which has some of his children SWFLoaders.

    For example, "page 2" the view stack is an interactive SWF of flash cs3. It loads and works perfectly, but how to stop and reset it to Flex, as when the user changes discovered battery views?

    Fortunately, the SWF file is playing, but the user goes back to 'page 1' from VS, the SWF on the page 2 always plays its audio.

    How can I control the SWF file?

    I found an old post which enabled, with a simple change. In the interest of helping others who find this thread, here's what worked for me:

    In my element 'page 2 ':

    Import mx.controls.SWFLoader;

    private var movie_clip:MovieClip;
    private var myLoader:SWFLoader = new SWFLoader();

    private function init (): void {}
    myLoader.addEventListener (Event.INIT, loadHandler);
    myLoader.load ("equipment.swf");
    this.addChildAt(myLoader,0);
    }

    private void loadHandler(e:Event):void {}
    movie_clip = e.target.content;
    }

    public function pp (): void {}
    movie_clip.remotePause ();
    }

    ]]>

    And then, in the main application:





  • Control external swf timeline

    Hey guys

    I was wondering how to control the timeline of an external swf that is loaded into the root of your main timeline from within clips embedded in your main timeline?

    I can control it successfully once he is responsible for the function which assigns the external swf a var MovieClip, but I want to be driven for more deeply in my main swf.

    1. I loaded an external swf into the root of my main swf.

    2. after loading, I assign the external swf file a var MovieClip and then set up a button to control the timeline of the external swf file:

    function dataOnLoad(evt:Event): void {}

    var myClip:MovieClip = evt.target.content;

    function updateSwf(evt:MouseEvent): void {}

    myClip.swf_MC.gotoAndPlay (2);

    }

    update_but.addEventListener (MouseEvent.CLICK, updateMenu);

    }

    I want to do is now, instead of the button where it is, I like it to reside in the moiveclip, I called editor_MC, which is on the timeline which is the code of function above.  How can I call updateSwf(evt:MouseEvent) to editor_MC?

    Cheers for your help guys.

    Shaun

    do not take local myClip to your function.  (and never nested named functions):

    var myClip:MovieClip;

    var loader: Loader = new Loader();
    addChild (loader);

    var newSWFRequest:URLRequest = new URLRequest (loadSwf.text);
    Loader.Load (newSWFRequest);

    loader.contentLoaderInfo.addEventListener (Event.COMPLETE, dataOnLoad);

    function dataOnLoad(evt:Event): void {}

    myClip = MovieClip (evt.target.content);

    update_but.addEventListener (MouseEvent.CLICK, updateMenu);

    }

    function updateSwf(evt:MouseEvent): void {}

    myClip.swf_MC.gotoAndPlay (2);

    }

  • Control a .swf with a different .swf file file

    Hello-

    Can one.swf file control the actions of another on the same HTML page .swf file?

    Example:

    FloatingMenu.swf would control the timeline in MainStage.swf

    Thank you-Ben L

    Yes.

    You can always use localconnection to communicate between the two.

  • external control with SWF MC?

    Hi all

    OK, let's say I have two SWF files.

    In 'SWF 1,' I have a clip.

    The music video for 'SWF 1' load externally "2" SWF file.

    Is it possible for me to have something (like a button) inside of the "SWF external 2" with the ability to control something (like a music video) in "SWF 1?

    If yes what would like the path to that mc look?

    Thank you

    If both are as2 SWF files, you can reference the movieclip target load in swf1 (loading swf) on the main timeline of swf2 (the loaded swf file) to:

    This.

    so, if this target load lies on the main timeline of swf1, you can reference the main scenario for swf1 using:

    This ._parent.

    and if there is a movieclip on the main timeline of swf1 mc, you can reference it using the:

    This._parent. MC1.

    etc.

  • Control external SWF file?

    Is it possible to control an external SWF file with buttons on the main clip?

    I have an external SWF loading in the scene, but I wanted to order 'play', 'stop' and 'goto' with buttons outside of the SWF.

    BUD Hey!

    This can not solve your problem, but I thought I'd give it a try. [Excuse me if you knew:]

    I load content in my projects using the attached code. He downloads the content from the link provided, attaches to the "external" variable and place it in the clip 'LoadMov '.

    After that, I can handle the content by referring to the "external" variable

    for example:
    LoadMov.external.gotoAndStop (10)

    Tell me if it helps!
    John

  • Control external SWF loaded in MovieClips

    Draw the hair a little bit today, with something that seems so easy. I have a main scenario with two empty clips (originalMC, newMC). I'm loading external swf (original.swf, new.swf) in them. Sovereign wealth funds are in the same folder as the main file. They load very well and my EventListeners trigger functions as expected.

    I need the ability to stop reading the swf external when they load, but everything I've tried to create errors or simply fails. What I have to add to the functions (stopNew and stopOriginal) to prevent them from playing? Code below. Thank you.

    Chargers for newMC and originalMC

    var loader: Loader = new Loader();

    loader.contentLoaderInfo.addEventListener (Event.COMPLETE, stopOriginal);

    Loader.Load (new URLRequest ("original.swf"));

    originalMC.addChild (loader);

    var loader2:Loader = new Loader();

    loader2.contentLoaderInfo.addEventListener (Event.Complete, stopNew);

    loader2. Load (new URLRequest ("new.swf"));

    newMC.addChild (loader2);

    function stopNew(e:Event):void {}

    trace ("new load");

    Track works on export, so the function is called correctly

    I would like this feature to stop the chronology of 'newMC '.

    }

    function stopOriginal(e:Event):void {}

    trace ("loaded original");

    Track works on export, so the function is called correctly

    I would like this feature to stop «originalMC» chronology

    }

    Your intentions seem to be off target if you want to stop the maturities of the two elements call you newMC and originalMC.   These two objects will not be the objects that are loaded.  To stop the timelines of the new.swf and the original.swf files you load, you would use something like...

    function stopNew(e:Event):void {}

    var newSWF:MovieClip = e.target.content;

    newSWF.stop ();

    }

    function stopOriginal(e:Event):void {}

    var originalSWF:MovieClip = e.target.content;

    originalSWF.stop ();

    }

    Assuming that you want to target these movies outside of these functions, you would report the variables outside the function instead of as shown inside.

  • Parent timeline control child swf

    Hello

    I need help and tried trolling the forums and web site for hours, without result, where my post here.

    Here's my situation:

    I have a captivate file that is essentially like a skin, containing headings, buttons and explanatory text, which is the parent swf file.

    I then save a software simulation in another captivate file which is the child swf file. I then publish this as a swf file. This swf is then imported into the original file from captivate with text instructions for software simulation.

    Is it possible that when a button is pressed inside the software simulation, that the text of statement in the parent file may change? Ideally by scrolling the text upwards, or by an order of hide/show, where display instructions will be linked to the next step and automatically indicates the next step they press a button in the child swf file.

    I hope that makes sense. If that sounds confusing, I will try to explain the parts that don't make sense.

    I hope that someone out there will have an answer for me, because I'm having no luck try for me right now.

    Thank you all

    See you soon

    Scott.

    Hello

    Totally agree with rod on inclusion not the SWF file created by CP in a CP - file.If you want to have the sims in your CP file to a smaller size, it is also possible in this way:

    • create each sim to a different file at the resolution they have desired
    • resize the file to the final resolution of the main file; You can use a master slide, possibly with additional information like logo... maybe my blog post about slide masters Knockout can be useful: create and use a master Knockout slide
    • Copy / paste the sim back in the main file

    Lilybiri

  • Main external control through swf SWF...

    OK, it's a difficult question for me...

    Ive understood timeline transitions and timeline based preloaders... so now I have a problem...

    I have my swf file in HAND I load all my pages externally (swf files) external...

    When I click on a button (for example) my button "about us" - the transition begins...

    I have a keyframe with the following code on the frame 40 (inside a clip named 'pages' in my main SWF where are all the buttons/transitions):

    var Xpos:Number = 0;

    var Ypos:Number = 0;

    var swf:MovieClip;

    var bgloader:Loader = new Loader();

    var bgURL

    {if(page==1)}

    bgURL = new URLRequest("pages/home.swf");

    }

    {if(page==2)}

    bgURL = new URLRequest("pages/about.swf");

    }

    {if(page==3)}

    bgURL = new URLRequest("pages/updates.swf");

    }

    {if(page==4)}

    bgURL = new URLRequest("pages/contact.swf");

    }

    bgloader. Load (bgURL);

    bgloader.x = XPos;

    bgloader.y = YPos;

    bg.addChild (bgloader);

    Stop();

    now, as you can see, at the end he stops... and that's because my external swf files have timeline preload in them...

    now on 41 of my main swf frame, I created a label called 'start', I need to focus my external pages...

    ////////////////////////////////////////////

    all my external swf I have this code on the frame 2 (and this is where I'm having the problem):

    {if(framesLoaded==80)}

    MovieClip (parent) .gotoAndPlay ("start");

    }

    of other if(framesLoaded<80) {}

    gotoAndPlay (1);

    }

    now, where I have a MovieClip (parent) .gotoAndPlay ("start"); -I'm trying to target my SWFs MAIN timeline (which is within a clip on the main timeline, called 'pages').

    However, it does not work... I can't get my external swf to communicate correctly for some reason any...

    How to encode my external swf files to find out that, once loaded behind 80 on them, he needs to run my MAIN gotoAndPlay ("start") swf file?

    im hoping someone can help here...

    You won't have everything what you try to accomplish if you expect just the swf file to load before you order the main timeline to move along.  If you assign a listener to the loader, you can determine when the file is loaded and ready to run without having the file itself understand this and tell you about it.  Just add an INIT listener for your charger...

    bgloader.contentLoaderInfo.addEventListener (Event.INIT, eventHandler);

    This line of code will be your main timeline expected to call this function of eventHandler until the content of the loader (your swf) indicates that it is loaded and ready for action.

    So, everything that you could possibly need is (which means no code is necessary in your loaded swf)...

    Stop();

    var Xpos:Number = 0;

    var Ypos:Number = 0;

    var swf:MovieClip;

    var bgloader:Loader = new Loader();

    var bgURL;

    {if(page==1)}

    bgURL = new URLRequest("pages/home.swf");

    }

    {if(page==2)}

    bgURL = new URLRequest("pages/about.swf");

    }

    {if(page==3)}

    bgURL = new URLRequest("pages/updates.swf");

    }

    {if(page==4)}

    bgURL = new URLRequest("pages/contact.swf");

    }

    bgloader.contentLoaderInfo.addEventListener (Event.INIT, initHandler);

    bgloader. Load (bgURL);

    bgloader.x = XPos;

    bgloader.y = YPos;

    bg.addChild (bgloader);

    function initHandler(event:Event):void {}

    gotoAndPlay (41);

    }

    Taking a step toward what you tried, just so that the intentions of this solution are not wasted... the missing link in your attempt failed add a listener for the completion of the load that would have called the function loaderCompleteHandler...

    bgloader.contentLoaderInfo.addEventListener (Event.COMPLETE, loaderCompleteHandler);

  • Control a swf AS3 Captivate in Flex - quiz set preferences

    Hi all

    I am able to use the SWFLoader for loading a Captivate.swf, and play using the nextSlide, previousSlide etc..  However I am stuck by the quiz.

    I have access to all the symbols rd * and cp *.   I would like to navigate through all the slides, but if I have a quiz, I'm stuck in 'rdcmndGotoSlide' 'rdcmndNextSlide' or parameter passed the quiz.  Does anyone know if this is possible?  Help, please!

    In fact, in AS3 you cannot overload a function if the class was sealed. The AS3 performance gain was realized by using the object related to store variables. Unfortunately, the subject of character is not accessible, so we cannot dynamically overload functions more.

    However, if the class is dynamic and the feature has been added dynamically to the performance, you can overload the it.

    To make it simpler:

    • If the class is sealed: you can't do it.
    • If the method is encoded in an external class: you can not do.
    • If the class contains the dynamic keyword and that the function has been added to the run time: you can!

    I hope that's not too complicated and it helps!

    Yves

    PS most of this knowledge came to try to overload the functions used in the classes of Captivate ;-)

  • How can I control a SWF via RF, ala Powerpoint remote control?

    I have a Mac laptop and a remote to RF Honeywell who will control Powerpoint presentations. I prefer to do presentations in Flash. The remote control has three functions: the last slide, next slide, and white screen. I don't have any idea of what remote control signals sent to Powerpoint to read, but it should be pretty standard.

    Did someone knows a way code Flash so that it will respond to these commands, the same as Powerpoint does... or is this a lost cause?

    Thank you!

    I thought about it. Just make an invisible button full screen and place it on a layer on every frame.

    For his Actions - button for frame 2:

    on {(keyPress "")
    Stop (3);
    }

    on {(keyPress "")
    Stop (2);
    }

    sends the show forward in the chassis (slide) 3 by pressing the button 'Next' on the remote control and it refers to the framework (slide) 1 by pressing the button "Back".

    I have a Stop action on each image.

    This allows me to control a Flash show as a Powerpoint slide show. Cool.

  • Problem updating to a control on a panel based on a change in value in another control on another Panel

    Hello

    I'm trying to update the value of a control on a Panel, when the value of another control on another Panel is changed.  The two panels are saved in two .uir different files, so there are two associated .h files generated by CVI.  The problem is that, inside the callback function for the control being modified (Ctrl_Id_A on Panel_A), when I call it SetCtrlVal (Panel_B, Ctrl_Id_B, Value); 'Panel_B' and 'Ctrl_Id_B' (who have the same numeric values Panel_A = 1 and Ctrl_Id_A = 2 in their folders respective .h) are interpreted as Panel_A and Ctrl_Id_A.  I never understood how ICB does this distinction, for example. knowing that PANEL_A = 1 and PANEL_B = 1 is mentioned, but don't worry because I never needed only to intercommunication between the panels up to now.  Any help on how to implement this would be greatly appreciated.  Thank you!

    For your reference, in this discussion , I give a few basics on how the panels and controls are handled.

    Additional useful forum discussions can be found here : this is the list of the results of a search of forum for "constant handle name Panel": you will find several useful posts that you can read to better understand the concepts of handle Panel.

  • control the loaded swf file

    Hi all

    I am loading a swf into another SWF, I want to controll loaded swf such as play and pause the swf. The loaded swf file is an animation file, all animations are kept in a movieclip, then please tell me how I can control the animation.

    In your first assignment, you tell the animation is present in a movieclip.  If this movieclip is in the loaded swf file you will probably need to target this movieclip to tell him to play rather than the SWF itself, as in...

    currentSWF.movieclipName.play ();

    where movieclipName is replaced with the name of the instance of movieclip in the loaded swf file.

  • prevent the loaded swf to loopback

    Hello world

    I am loading a swf file into a swf of controller, and thanks to the help I received on this forum, I am able to control the swf loaded with play and pause buttons.  I have another question, and this is how to prevent the loaded swf file looping.  I wish that the swf loaded to play its last picture and stop.  I have the following code and it works with an error.  I'm assuming that the error is coming because the service runs before the swf file is loaded.

    var myLoader = new Loader();
    var myURL:URLRequest = new URLRequest ("box.swf");
    myLoader.load (myURL);
    addChild (myLoader);

    pause_btn.addEventListener (MouseEvent.MOUSE_UP, onClickPause);
    play_btn.addEventListener (MouseEvent.MOUSE_UP, onClickPlay);

    function onClickPause(evt:MouseEvent):void {}
    MovieClip (myLoader.content) .stop ();
    }
    function onClickPlay(evt:MouseEvent):void {}
    MovieClip (myLoader.content) .play ();
    }

    the following works with a guy

    stage.addEventListener (Event.ENTER_FRAME, stopPlay);

    function stopPlay(e:Event):void {}
    If (MovieClip (myLoader.content) .currentFrame is {MovieClip (myLoader.content) .totalFrames)}
    MovieClip (myLoader.content) .stop ();
    trace ("End");
    }
    }

    The error reads as follows:

    TypeError: Error #1009: cannot access a property or method of a null object reference.
    at controller_fla::MainTimeline/stopPlay()
    TypeError: Error #1009: cannot access a property or method of a null object reference.
    at controller_fla::MainTimeline/stopPlay()

    Once again, any help would be greatly appreciated.

    Thank you!

    -Dave

    Use COMPLETE earphone that kGlad offered to wait to assign the ENTER_FRAME listener.

    var myLoader = new Loader();
    var myURL:URLRequest = new URLRequest ("box.swf");
    myLoader.load (myURL);

    myLoader.contentLoadInfo (Event.COMPLETE, loadCompleteF);

    function loadCompleteF(e:Event) {}

    stage.addEventListener (Event.ENTER_FRAME, stopPlay);

    }

    addChild (myLoader);

    pause_btn.addEventListener (MouseEvent.MOUSE_UP, onClickPause);
    play_btn.addEventListener (MouseEvent.MOUSE_UP, onClickPlay);

    function onClickPause(evt:MouseEvent):void {}
    MovieClip (myLoader.content) .stop ();
    }

    function onClickPlay(evt:MouseEvent):void {}
    MovieClip (myLoader.content) .play ();
    }

    function stopPlay(e:Event):void {}
    If (MovieClip (myLoader.content) .currentFrame is {MovieClip (myLoader.content) .totalFrames)}
    MovieClip (myLoader.content) .stop ();
    trace ("End");
    }
    }

    You can also use a stop(); command at the end of the timeline of the swf file that is loaded instead.

Maybe you are looking for

  • Music Analyzer does not work on NF800

    Hello all I'm new and need help. I have a walkman NF800 with android and music analyzer (Senseme) feature aways stop working, its has some sort of error. The player is connected when I perform the analysis, and I check the feature awake to stay for t

  • P580 IDEAPAD - Lenovo TouchZone problem

    Hello Whenever I start my Lenovo Ideapad p580 i7 3rd Gen with Win 7 home premium it gives black screen sometimes. So I have to Ctrl + Alt + Delete and via the Manager tasks have to end special Lenovo TouchZone.exe then it works fine. It takes time to

  • G6-2123us Pavilion: pavilion g6

    Hello I need HELP!  My cdrom did not work and I googled the problem.  I believe that I found myself on a HP help page and technology said to go to Device Manager, find the CD-ROM drive, open the drop down and uninstall the CD-ROM drive, but not the d

  • Case Structure sequence does not move to the next iteration

    Hello I am trying to create a multifunction data acquisition and control of a laboratory instrument. As shown in the attached VI, I finally 3 different modes: simple, door double door and GC, each with their own functionality. So far, I worked only o

  • Auto-Playing Music DWCC2015

    According to Nancy, I downloaded Audio html5 on the Web site of tony. I double clicked on the audio symbol and open the properties. I dragged the symbol music more then we do mp3 song which was under my belt and the name of the song has shown in the