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);

}

Tags: Adobe Animate

Similar Questions

  • 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.

  • 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

  • How to determine the total number of images in the external .swf file loaded

    I have to be able to load both external .swf files and make them play in order. To do this, I need to know the number of images in the first .swf file so I can check _currentframe against _totalframes to determine when he is finished playing so that I can load another.

    Most of the stuff I see indicate that _totalframes on an external .swf can be determined by loading the .swf in a container clip and then check using a listener in the .onLoadInit. Like this:

    ------------------------------------------------------------------------------------------ ----------------------------

    this.createEmptyMovieClip ("tester_mc", 1);
    var mcListener:Object = new Object();

    mcListener.onLoadInit = {function (target_mc:MovieClip)}
    target_mc.onEnterFrame = function() {}
    If (this ._currentframe > = this ._totalframes) {}
    trace ("total frames =" + this ._totalframes);
    delete this.onEnterFrame;
    } else {}
    trace (target_mc._currentframe + "OF" + target_mc._totalframes);
    }
    }
    }

    var test_mc:MovieClipLoader = new MovieClipLoader();
    test_mc. AddListener (mcListener);
    test_mc.loadClip ("Ad_Group.swf", tester_mc);

    ------------------------------------------------------------------------------------------ -------------------------------------

    Unfortunately, this doesn't seem to work. The trace will always return a total number of frames of 1.

    I guess it's because the container clip has only 1 frame, and the external .swf timeline seems to be ignored.

    I would appreciate any ideas on how to raise the total number of frames of an external .swf file or, Alternatively, put it another way when it's done playing. (Not only the loading, but play until the end.)

    TIA,

    C

    I guess it's because the container clip has only 1 frame, and the external .swf timeline seems to be ignored.

    I wouldn't imagine. My guess is that the main scenario for the external swf file has only 1 frame and the rest of the animation is inside a movieclip in this timeline. You publish this swf? Can you open the FLA and check how many images is open on the main timeline?

    The approach that you have mentioned is about what there is. But he knows check a chronology. If there are many nested movieclips, it may be impossible to understand what timeline you really want to be 'THE' full chronology.

    If you have the FLA, you can have the video call function on the _root timeline which tells the main swf that has completed a movieclip or something like that.

    Also, I have in my head somewhere that I recently saw something that someone made similar to this one, but do not remember... If it appears in my head that I will post.

  • An external swf movie clip can control the action on the parent timeline?

    I have an instance where I would like to a movieclip inside an external swf file to control the action on the parent timeline... any ideas? It is a drive function? Here's my attempt...

    swf import external file 'entrypage"using movieclip empty 'container' on the parent timeline main
    _root.createEmptyMovieClip ("container", 1);
    container.loadMovie ("entrypage.swf");

    feature of swf external files movie clip "na9" appearing inside the "testnav" on the main timeline of the swf files external...
    testnav. NAV9.onPress = function() {}
    _parent.gotoAndStop ("Theend"); clicking the movieclip above, he "end" label for the parent timeline
    }


    Am I close?

    You can send me your files to [email protected] to see what the problem could be

  • 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);

  • AS3: How to access and control embedded sounds in an external swf?

    I rarely use the sounds in AS3/Flash. I use Flash Pro CS6, but I can't seem to understand how access control (play, stop, etc) sounds embedded in a SWF external loading in the main SWF file.

    It is easy to control them when they are incorporated on the main swf. However, on a responsible external SWR, I get all sorts of errors. For this application, I really need to incorporate in the external SWF file.

    I've read several solutions, but none seems not to work.

    I integrate the sound file mp3 called soundSegment1.mp3 tool to import Flash CS6 and then open the properties panel actionscript Flash select the name of the class: SoundSegment1. Can I change the class ID and create a file named SoundSegment1.as, and it saved right next to my document class main.as in the same directory. The code for the SoundSegment1 class looks like this:

    package  {

       
    import flash.media.*;


       
    public class SoundSegment1 extends Sound
       
    {

           
    public function SoundSegment1 ()
           
    {
               
    // no code in here
           
    }


           
    public function playSound()
           
    {
               
    var soundSegment1:Sound = new SoundSegment1();
               
    var channel:SoundChannel = soundSegment1.play();
           
    }
       
    }
    }

    Then, in my main.as, I made several attempts to play this sound such as:

    var fileLocation:URLRequest = new URLRequest(SWFToLoad);

    loader.load(fileLocation);

    loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressListener);

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

    loader.contentLoaderInfo.addEventListener(Event.INIT, initListener); 


    function initListener(e:Event):void // I also placed this code on the completeListener and it didn't work

    {

         loader.content.soundSegment1.playSound(); // doesn't work. 

    }

    I get:

    Line XXX 1061: Call to a possibly undefined method playSound through a reference with static type flash.display:DisplayObject.

    Otherwise, I also read that I should be able to do something like this anywhere in the Main.as file:

    var theClass:Class = Class(loader.content.getDefinitionByName("SoundSegment1")); var theSound:theClass = new theClass(); theSound.play()  //doesn't work either.

    I also tried on the completeListener:

    var TheClass:Class = e.target.applicationDomain.getDefinition("SoundSegment1") as Class;

    var theSound:TheClass = new TheClass();
    theSound
    .play()  //doesn't work either.

    I get:

    ReferenceError: Error #1065: Variable SoundSegment1 is not defined. at flash.system::ApplicationDomain/getDefinition()

    I'm stuck and I really need this to work. I would really appreciate your help.

    Thanks in advance for any help provided. I really need to make it work, because I can not simply incorporate into the main SWF or load them individually outside one by one.

    Thanks again!


    You can use the load and loadCompleteF below:

    var SWFToLoad: String =...;

    var s:String = "SoundSegment1";

    Load (SWFToLoad, s);

    function load (urlS:String, classS:String) {}

    var ldr:Loader = new Loader();

    ldr.contentLoaderInfo.addEventListener (Event.COMPLETE, function(e:Event){loadCompleteF(e,classS);});)

    LDR. Load (new URLRequest (URL));

    }

    function loadCompleteF(e:Event,classS:String):void {}

    var loadedAppDomain:ApplicationDomain = e.target.content.loaderInfo.applicationDomain;

    var C: Class = loadedAppDomain.getDefinition (classS) in class;

    var instance: * = new C();

    Sound (instance). Play();

    }

  • How to prevent the sounds of the timeline in external swf files to play during the loading?

    I'm having a problem with the sounds of the external timeline in the swf files play while charging in a main swf file. Can someone help me?

    Here is a part of the main code of the swf. I hope I got enough.

    Thank you.

    import flash.events.MouseEvent;

    import flash.display.MovieClip;

    import flash.display.Loader;

    to import flash.events.ProgressEvent;

    import flash.events.Event;

    import flash.net.URLRequest;

    Import fl.events.SliderEvent;

    import flash.media.SoundTransform;

    preloader_mc.fill_mc. ScaleX = 0;

    var swfA:Array = ["part1.swf", "part2.swf"];

    var frameA:Array = [];

    var currentLoader:Loader;

    var swfTotalFrames:int;

    var tl:MovieClip =;

    var st:SoundTransform = new SoundTransform()

    var int index = 0;

    loadNextF();

    play_slider. Enabled = false;

    function loadNextF (): void {}

    TL ["loader_" + index] = new Loader();

    TL ["loader_" + index] .name = index.toString ();

    TL ["loader_" + index].contentLoaderInfo.addEventListener (ProgressEvent.Progress, progressF);

    TL ["loader_" + index].contentLoaderInfo.addEventListener (Event.Complete, completeF);

    TL ["loader_" + index] .load (new URLRequest (swfA [index]));

    }

    function progressF(e:ProgressEvent):void {}

    var fractionLoaded:Number = index/swfA.length+e.bytesLoaded/(e.bytesTotal*swfA.length);

    preloader_mc.fill_mc. ScaleX = fractionLoaded;

    preloader_mc. TF. Text = (100 * fractionLoaded) + "% Loaded";

    }

    function completeF(e:Event):void {}

    TL ["loader_" + index].contentLoaderInfo.removeEventListener (ProgressEvent.PROGRESS, progress F);

    TL ["loader_" + index].contentLoaderInfo.RemoveEventListener (Event.Complete, completeF);

    SoundMixer.stopAll ();

    var mc:MovieClip = MovieClip (tl ["loader_" + index] content);

    mc.gotoAndStop (1);

    frameA.push (mc.totalFrames);

    index ++;

    if(index<swfA.Length) {}

    loadNextF();

    } else {}

    / / full of all charges.  start playing.

    restart_mc.buttonMode = true;

    restart_mc.Alpha = 1;

    tl.addEventListener (Event.ENTER_FRAME, playUpdateF);

    tl.removeChild (preloader_mc);

    preloader_mc = null;

    play_slider.enabled = true;

    playpause_mc.Alpha = 1;

    currentLoader = tl ["loader_0"];

    tl.addChild (currentLoader);

    MovieClip (currentLoader.content) .play ();

    sliderParamsF();

    }

    }

    I have about 70 sounds in my two external SWF. What I need to stop all of them?

    //---

    more than likely, Yes. I guess it depends on how you have 70 put sounds up in your external swf file... I mean:

    you have 70 movieclips appointed on the external swf stage with a distinct sound in each of them? and each have a stop() action in the first picture?

    or

    you say your external swf to go to a certain image tag that plays a sound on the timeline to this label?

    or

    are your 70 sounds created dynamically with code and told. start()?

    //---

    Keep in mind, a swf loading will start to play even before it is fully charged. So instead of when it is fully charged, try stop the loaded swf with a listener for 'init', i.e. when the swf file loaded passes its first image:

    function loadNextF (): void {}

    TL ["loader_" + index] = new Loader();

    TL ["loader_" + index] .name = index.toString ();

    . contentLoaderInfo.addEventListener TL ["loader_" + index] (ProgressEvent. COURSES, progressF);

    TL ["loader_" + index].contentLoaderInfo.addEventListener (Event.COMPLETE, completeF);

    TL ["loader_" + index].contentLoaderInfo.addEventListener (Event.INIT, initF);

    TL ["loader_" + index] .load (new URLRequest (swfA [index]));

    }

    function initF(e:Event):void {}

    SoundMixer.stopAll ();

    var mc:MovieClip = MovieClip (tl ["loader_" + index] content);

    mc.gotoAndStop (1);

    }

  • His control of an external SWF PLS HELP!

    Hi all

    I'm trynig to control an external SWF sound but I can't seem to do things, I am kind again have you and would really apreciate any HELP given!

    Here is the code I use to import the sound

    mport flash.media.Sound;
    import flash.net.URLRequest;
    import flash.display.Sprite;
    import flash.media.SoundChannel;
    import flash.events.Event;
    import flash.events.MouseEvent;

    var _som1:Sound;
    var _channel1:SoundChannel;
    var _playing1:Boolean = false;
    var _position1:int;

    _som1 = new Sound( new URLRequest ( "som1.mp3"));
    _channel1 = _som1.play();


    /*
    //this controls the sound inside the SWF
    //this code has to be on the main SWF
    _play.addEventListener(MouseEvent.CLICK, playSound);
    _pause.addEventListener(MouseEvent.CLICK, pauseSound);

    function playSound(event:MouseEvent):void {
        _channel1 = _som1.play(_position1);
    }

    function pauseSound(event:MouseEvent):void {
        _position1 = _channel1.position;
        _channel1.stop();
    }
    */

    My main SWF call an internally within a clip, here is the code, if this can help somehow...

    var loadAnimBox:Loader = new Loader();
    var vid_mc:MovieClip;

    function startLoading():void {
        loadAnimBox.contentLoaderInfo.addEventListener(Event.COMPLETE, onBoxLoaded);
        // load the box animation SWF
        loadAnimBox.load(new URLRequest((meuCaminho.parameters.var3) + ".swf"));
    }

    function onBoxLoaded(e:Event):void {
        loadAnimBox.contentLoaderInfo.removeEventListener(Event.COMPLETE, onBoxLoaded);

        vid_mc = loadAnimBox.content as MovieClip;
        // We listen for that event:
        vid_mc.addEventListener("firstAnimationComplete", onFirstComplete, false, 0, true);   
        addChild(vid_mc);
       
        // set up the play button
        play_btn.addEventListener(MouseEvent.CLICK, playClick);   
        stop_btn.addEventListener(MouseEvent.CLICK, stopClick);

    }

    function onFirstComplete(e:Event):void {
        // we should remove the listener if we're not going to play this again
        trace("First animationn complete, start second animation.");
    }

    function playClick(e:MouseEvent):void {
        vid_mc.play();
    }
    function stopClick(e:MouseEvent):void {
        vid_mc.stop();
    }

    Thanks for the attention... best regards!

    When your external swf:

    var alreadyStarted:Boolean

    if(!alreadyStarted){alreadyStarted=true;_som1 = new Sound( new URLRequest ( "som1.mp3"));_channel1 = _som1.play();}
    
    and in your main swf use the two functions in suggested to play and pause your sound.
    
  • 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);

  • How to get a SWF that is responsible for controlling the parent timeline?

    I have a SWF that loads an external swf. I want the external swf (that has been loaded only), interact with the timeline of the swf file that just load it. I tried MovieClip (root). or MovieClip (parent). but they give me errors. How can I use as3 in the external swf so that it interacts correctly with the parent?

    the main timeline in the swf file that is loaded, you can reference the main timeline in the swf loading using:

    MovieClip (parent.parent)

  • How to preload external swf file in my main timeline?

    To try to reduce the size of the file for download time... I have a SWF file that I placed it by using the "UILoader" (not sure if it's the right thing to do)... what I would like to work on is how to make a preloader in my main to this SWF file timeline when it comes...

    I hope that makes sense - I am very new to all this and struggling with terminology, etc.

    I thought that Actionscript would be right now what I need - but not a clue...

    I conclude this thread for people who seek a way preload external SWF files. However, please note that I started a new thread to unload the file again on a mouse event... so even if it's not completely final it will start the process of an external SWF preloading... Hope this helps someone.

  • controls on external swf don't work

    I have a swf file that has a charger controls to read an external .swf file. In the external swf file, I have a button that calls the space bar to read the film and the tab button to stop the movie. They work very well when the single swf file playing, but when he plays in the other swf file, they do not work. What gives?

    Thank you
    Rich

    use something else outside . In addition, it is an old way of coding of the presses. give your MC instance and use a key listener to listen to the key code. in this example, I use bar (32) of space to play and shift (16) to stop.

  • How to unload this external .swf from the timeline?

    OK, so I found out how to get the external .swf in my parent using this code.

    function wordbookopen(event:MouseEvent):void

    {

    var myLoader:Loader = new Loader();                     Create a new instance of the Loader class

    var url: URLRequest = new URLRequest ("SB_wordbook.swf"); in this case, the two sovereigns are in the same folder

    myLoader.load (url);                                     load the SWF file

    addChild (myLoader);                                     Add this instance to the display list, adding to the stage at 0,0

    dictionaryhome. Visible = true;

    alwayshome. Visible = false;

    backBT.visible = false;

    nextBT.visible = false;

    WB.visible = false;

    }

    Now, I want to delete using another button

    dictionaryhome.addEventListener (MouseEvent.CLICK, wordbookclose);

    function wordbookclose(event:MouseEvent):void

    {

    ???????????????????????

    }

    Whenever I try to use the variable myLoader it says access of undefined myLoader property

    I can put a blister on it so this is...  Please help, I think it's the last ACE # obstacle that I have before I can actually start doing some work!

    See you soon

    Well it worked!

    I used code snippets to get stuff inside and out and modified to work on two separate buttons! JOY m :)

  • How to control an external SWF loaded with actionscript

    It is a question of both parties, and I'm pretty new to Flash. I'm working on a flash animation and the interface is a small town (simiar to "doritos.com" and "comcasttown.com"), if you are referencing the doritos comcast sites and their little movie gently. I have several items in the city. For example, one of the elements is an airplane hanger. When you reverse the hanger, I created a movie, the doors open and a plane flies out of the hangar. I have several small films throughout the interactive like this. I created the hangar as a separate swf file animation. In my main movie, I created a button bearing, it loads the SWF hangar in an empty movieclip. When I publish and display the swf file, it plays slow and jerky. First of all, is it possible to write an actionscript to load external swf file, but it will stop on the first frame of the animation, and when you the reversal, he continues to play.  To put all this in a Word, I want to create several buttons throughout the movie with loadmovie functions, once loaded swf movies I want to that they stop on the first frame of the animation and when you charge rolling video swf I want to continue to play the animation. ActionScript should be applied for swf movies first and preloaded in the main movie. And what will make the movies smoothly once he published and displayed in a browser.  Also, if that makes a difference, I created animations in sequels, exported as imported into flash FLVs and exported to the swf. Again, it works really slow and jerky. I'm taking the right approach?  I know it's a lot of information, but any help would be greatly appreciated. Here is the script I used for the button.


    on (rollover) {loadMovie ("movies/solarpanel.swf", "solarload");


    Thank you

    1. export a SWF of sequels.

    2. Add a stop() on the first frame of your SWF so they don't start playing while they are loading.

    3. apply mouse on your target movieclips managers and using the play() method to start your SWF play when postponed:

    {target1mc.onRollOver = Function ()}

    This.Play ();

    }

    and if you want them to stop when roll-out:

    {target1mc.onRollOut = Function ()}

    This.Stop ();

    }

Maybe you are looking for