Control the main storyline of the film loaded

I loaded an external film on the main movie in a movie clip called "mainholder" - in the main storyline on the main sequence there is a command to 'stop' on frame 1. The film loaded, I want to control the main timeline and tell him to go to frame 2. Can someone tell me the actionscripting to do this, I have tried several commands and frustrated. ;-)

Thank you

OK... _ is necessary to _parent and _root... all other instance names are called by their name on the timeline then... in the case of this file, try this

{We (Release)}
unloadMovie (this._parent.loadsgPhotosMain);
}

Tags: Adobe Animate

Similar Questions

  • Cannot control the film loaded

    A friend of mine is having bad controls a .swf which loads it into his film.

    This.loader_mc.loadMovie(_root.prAbsPath+"/360_"+vehicleName2+".swf");
    loader_mc.loadMovie ("360_fusion.swf");
    loader_mc.vehicle360.stop ();
    Stop();

    Thus, it is load the film 360_fusion.swf in loader_mc and then try to stop the movie to play... but it will not stop.

    Anyone see something wrong with that? He asks if I can help.

    Thoughts?

    You must wait until the loading is completed to control the loaded swf file.

  • help with the menu button and the film load

    Hi all... I am very new to flash and actionscripting and I am self-taught using mainly Internet searches.
    I'm building a site with a menu and a banner that is controlled by the menu (two swf files). I got to the make contact however, I'm stuck at this point.
    When 'bt_1' is hit I would like to be respected a "mv_1" to load in the banner.swf with intro animation... this I figured out how to... but now when you click on "bt_2" I want to play the rest of the animation of "mv_1" to unload the film before loading "mv_2" with its animation enterance respected... that I would make to several buttons. The method that I use for my local connection is...

    Sending script
    mySender = new LocalConnection();
    on (release) {}
    ------each button corresponds to a different setting... 1,2,3,4,5,6
    _root.mySender.send ("menuconnect", "action", 1);
    ------This is the best way that I could understand to disable the buttons appropriate... There might be a better way?
    Home.Enabled = false;
    couple.enabled = true;
    Events.enabled = true;
    Bridal.enabled = true;
    Media.enabled|disabled = true;
    RSVP.enabled = true;
    }



    Script of reception

    myReceiver = new LocalConnection();
    myReceiver.action = {function (doThis)}
    If (this == 1)
    gotoAndPlay (2);
    If (this == 2)
    gotoAndPlay (3);
    };
    and so and soforth for all six buttons
    myReceiver.connect ("menuconnect");

    If all this makes no sense at all, I'm sorry... I tried my best...
    If some pro out there can understand what I'm trying to do and can help me I would greatly appreciate it... Thank you all

    SJS

    I would like to use the ID to link to each of your mv_1, mv_2 etc. in the main stage and control them. This would have the advantage of eliminating the duplication of code and keeping most of your code in one place (image 1 of your _root timeline).

    If mc_1 etc was connection id mc_1ID etc, the other began on a frame labeled "outro" and ended on the last image, you can use:

  • Cannot get the film loader to work

    I have trouble getting my animation Flash loader file works. I created 3 movies test (1.swf, 2.swf, 3.swf). Each of the test file has long been a second. Everything they do is display a number. In my loader file, I load the test files a second part. The first two movies load very well, but instead of loading the third film the charger makes a loop to the first image and start again. The last film is ignored even when I place the order. For example, 3. SWF does not charge for 1-2-3, and does not load swf 1. 3-2-1. here is the actionscript code that I used. Anyone know how I can fix this problem? I am using Flash CS5. Thank you

    Stop();

    unloadMovieNum (1);

    loadMovieNum ("1.swf", 1);

    **************************

    Stop();

    unloadMovieNum (1);

    loadMovieNum ("2.swf", 1);

    **************************

    Stop();

    unloadMovieNum (1);

    loadMovieNum ("3.swf", 1);

    The reason why I'm a little confused, you're not using stop(), so I wonder how your timeline is to progress beyond. The loaded SWF files needs to communicate with the main timeline or your main timeline look the _currentFrame of the clip loaded into waiting so that she reaches _totalFrames.

    Here is an example (sans-stop ()) in saved AS2 until CS5 (I can't go lower) who did what you describe and works perfectly fine for me:

    http://www.ERTP.com/tmp/LoadMovieNum.zip

    Is there a difference between that and what you do, and this simple example works for you?

  • img src in the film loading

    Hi all
    It could be very simple, but for the life of me I don't see how.

    All I want to do is load a success coutner preset from my hosting in a box on my site - the meter is defined as linked reference img src: < img src = / tinc? key = nZOEpLjD >

    I put a box on the page and location in Flash animation and baptized as Counter_Box. This is the script in the actions that I use for the counter in the Coutner_Box:

    loadMovie ("< img src = / tinc?") ("key = nZOEpLjD >", Counter_Box);
    Stop();

    When the page loads, it removes just the Counter_Box and no hitcounter appears.
    For a demo, see the contact page of the site: www.pumaknight.co.uk. The meter must be at the bottom left of the screen.

    I hope you can help.

    Thanks in anticipation,
    Michael H text

    just checked: you create a textField instance and give it the name of the instance of 'counter_txt' in the MC 'Counter_Box '? And did this code placed within the Counter_Box timeline?

  • How to control the film with its exported in the form of swl.

    I would like to add several films to a document, they throw on each other in the form of slideshow and I change for those who will be seen with buttons.

    It's not a problem, when I export the file as a swl. I can read it in the Explorer or chrome and I can see the movies, I can stop and change them between them. I can also see them in full screen, all these opportunities are important. The problem is the noise, he doesent stop while I stop the movie. If I change the sound of the first movie film is still hanging...

    What should do?

    iBooks on Mac/iOS and Readium for the work of Chrome very well with generated InDesign EPUB disposal fixed.

  • The best consistent way to end and unloading a film loaded

    Hello

    I'm on the point goes crazy on the inconsistency of the loading and unloading of the film process. First one or two movies, ok. But after that, I still have my fingers crossed.

    It's a mix or simple game and quiz movies. So I have the main movie that the controller who control about 3 films and movies 16 quiz. So, I have this piece of code in my main movie scenario:

    onEnterFrame = function () {}

    if {(NextMovieOK)

    switch (movieQNum) {}

    case 0:

    //session intro

    NextMovieOK = false;

    sessionIntro (MovieList [movieQNum]);

    break;

    case 1:

    //session howtoplay

    NextMovieOK = false;

    sessionHowToPlay (MovieList [movieQNum]);

    break;

    case 2:

    //session monster1

    NextMovieOK = false;

    sessionLilMonster (MovieList [movieQNum]);

    break;

    box 3:

    //session Question1

    NextMovieOK = false;

    numQuiz = 1;

    sessionQuestion (MovieList [movieQNum]);

    break;

    box 4:

    bla...

    bla...

    bla...

    break;

    }

    }

    }

    function nextMov() {}

    clearInterval (IDInterval);

    trace ("Deleted IDInterval =" + IDInterval);

    movieQNum += 1;

    trace ("movieQnum =" + movieQNum);

    NextMovieOK = true;

    }

    I do not include sessionLilMonster / work for another session because they are almost the same code as sessionQuestion.

    function sessionQuestion(moviename:String) {}

    //load the film

    dep = getNextHighestDepth().

    currLo.removeMovieClip ();

    currLo = createEmptyMovieClip ("currLo" + dep, dep);

    loadMovie (moviename, currLo);

    //move the film loaded behind the frame of the movie

    BlackMovieFrame.swapDepths (currLo);

    BGBrown._visible = true;

    BGEdge._visible = true;

    trace ("moviename =" + moviename);

    }

    function EndSession(sessionMovie:MovieClip) {}

    unloadMovie (sessionMovie);

    clearInterval (IDInterval);

    IDInterval = setInterval (nextMov, 300);

    trace ("IDInterval value =" + IDInterval);

    }

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

    In the chronology of film quiz, I use the codes below at the end the film gracefully:

    var IntervalID: Number;

    var MoviePointer:MovieClip =;

    function DelayEnding() {}

    clearInterval (IntervalID);

    _root. EndSession (MoviePointer);

    }

    btnArrow.onPress = function() {}

    clearInterval (IntervalID);

    IntervalID = setInterval (DelayEnding, 500);

    this.enabled = false;

    };

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

    What I saw (from the instructions of tracing), sometimes NextMov() are not called (I know because tracing in the service instructions NextMov is not executed) for some reason any and I failed to understand why. It has something to do with the setinterval thing? Could he screwed up everything?

    Thanks in advance

    You are welcome.

    Please mark this thread as answered, if you can.

  • Load the film?

    I'm trying to load a movie within another movie that has an external url. However, some fonts and video does not appear in the film loaded correctly.

    Any suggestions?

    Add fscommand ("allowscale", false);

    for a start and take alook at the training class in the doc for more possibilities.

  • Controls the main scenario for swf loaded.

    Hello

    I use a textfield for debug information.

    I am loading a swf in the main timeline and I show the status in the textfield of debugging.

    function swfLoaderCompleteHandler(event:Event)

    {

    Debug.Text += "Swf loaded.";

    }

    This works.

    But,

    I am loading a png file in the loaded swf file. I'm showing the State of the png file that I showed the status of the swf file.

    function pngLoaderCompleteHandler(event:Event)

    {

    MovieClip (parent). Debug.Text += "Png loaded.";

    }

    I can't control the main swf from inside the loaded swf file. Same Stop or a function call does not work.

    I need to add something when I load the swf file, it's a MovieClip or something?

    Here is also a fla. http://flashfocus.nl/Forum/attachment.php?attachmentid=9885 & d = 1282509233

    You are welcome.

    Please mark this thread as answered, if you can.

  • Toolbox for CreateJS: how to control the main timeline from outside the canvas.

    Hey everybody,

    I'm currently doing something simple, but my animation film breaks whenever I try to change my code. I created a basic animation in Flash where an object moves from the left side of the canvas, to the right and then loops of the last frame of the first image. Nothing else. The animation is simply placed on the main timeline. I exported the animation with the Toolbox for CreateJS through the extension of the Flash and animation series as it should. I'm trying to start and stop (reboot of the first image) the animation with the mouse on and off mouse events. I want that the events to fire when wriggling over/stop a div outside the animation canvas tag. Is this possible with CreateJS? I'm trying to find a way to control the main timeline without being inside the canvas tag.

    HTML example:

    http://www.thephotoncore.com/testing/example_test.html

    Example Code:

    < id article 'container' = >

    < canvas id = "canvas" width = "550" height = "400" style = "background-color: #cccccc" > < / canvas >

    < section id = "animation_control" >

    < p > hover over to start and stop animation. < /p >

    < / section >

    < / section >

    Thanks again for the help!

    -DJ

    Hi DjPhantasy5,

    All the clips on the scene are children of the scene,

    So now the "mouseover" all clips on the stage could be stopped with stop and on the "mouseout/mouseouthandler()" all the children could be restarted with gotoAndPlay like this:

    function Stop()

    {

    If (stage & stage.children)

    {

    var t = stage.children.length;

    for (i = 0; i< l;="">

    {

    child var = stage.children [i];

    If ('stop' in child)

    Child.Stop ();

    }

    }

    }

    function Restart()

    {

    If (stage & stage.children)

    {

    var t = stage.children.length;

    for (i = 0; i< l;="">

    {

    child var = stage.children [i];

    If ("gotoAndPlay" children)

    child.gotoAndPlay (0);

    }

    }

    }

    See http://www.liauw.nl/forums/adobe/djfantasy5/index.html

    But it is also possible to expose "ball1", for example, by adding it to the document.

    This can be done by adding the code for "ball1" as follows:

    / * js

    document.ball1 = this;

    */

    Then stop the animation would look like:

    function Stop()

    {

    If ('ball1' in the document)

    document.ball1.stop ();

    }

    etc.

    Have fun!

    Ronald

  • How to control the video swf loaded in the loading component?

    I have an external swf file loaded into the loading component. The external swf loaded into the component loading stops at departure. I want to play by a button outside the loading component that is located in the main swf movie. CAN SOMEONE HELP ME CONTROL THE VIDEO SWF LOADED INTO THE COMPONENT OF LOADING EXTERNAL?

    You can target the SWF via the content property of the UILoader.  If the name of the instance the UILoader is ldr...

    MovieClip (ldr.content) .play ();

  • Control the main timeline and chronology of built-in movie clip

    Good afternoon folks,

    I am trying to solve this problem.  I have a main scenario with an animation. (animation is not a clip).  I also have a clip film embedded in the main timeline. I want to control the actions of the main timeline AND the embedded animation at the same time.

    For example, when a user clicks on a button "pause", I want to stop the animation of the main timeline as well as the integrated clip. I figured out how to stop the main timeline using the stop(); command.  I also understood how to stop the film incorporated using the command _root.embeddedclipinstancename.stop ();  Problem is that I don't know the commands to stop the two things at the same time.

    I tried to find that an instance name for the main timeline, but there is no (I think). I know I could do the animation in the timeline in a clip, but I don't want to go that route.  Any ideas on how to control two things?
    Also, if possible, I would prefer not to use the _root command since I know that this can cause a conflict in Captivate.

    Thank you.

    Include the two commands that worked in your pause button code.  If your [ause button is on the main timeline, you don't need to use a reference of _root.  It is only really useful if you target some of child level object distance back to the main timeline.  You can _parent (and string them if necessary) instead of using _root.  As you will get in trouble unless you're on the _root timeline when using it.

  • How to control the playback of a movieclip loaded externally

    Hi guys,.
    I'm giving this presentation now... and I am load an external swf inside a movieclip... is possible to control the playback of the swf file that is loaded outside, I want to say I want to play and make a break this swf in the main movie file... can someone please help me with it...

    Thanks in advance

    See you soon
    Hello

    Well, very easy...
    After you load the external SWF file, pause and play with the following ACE on the buttons...

    As for a break:
    on (release) {}
    _root.dropZone001.stop ();
    }

    As to read:
    on (release) {}
    _root.dropZone001.play ();
    }

    It should work no problem :)

  • Table and film loader affecting the timeline.

    I have a script to load a SWF into a video clip. This script is on the timeline of a movieclip which is then on the main timeline. This script is originally my movie to jump around the main storyline apparently randomly at different times.

    The tutorial I found parts of it in there on the main timeline, so I was wondering if the paths might be the cause of the problem.

    Thanks any help would be appreciated.

    you charge between 1 and 4 movieclips with your code according to k in each loop. If k is the same in all 4 loops, you will load a single. If k is different in each loop, you will load the 4 (but you will display only the last one).

    s randomly to load one of your swf, use:

  • Menu main movie Audio playback during the film

    Hi all

    Good evening

    I'm watching the X - men First Class movie, I bought a long time ago. Unfortunately, once that I touched READING the menu main iTunes film starts but continuous loop during the movie main menu theme music makes it impossible to hear the audio and enjoy the movie.

    I tried several options, nothing seems to work. Its as if he has 2 windows, 1 of the main menu and the 2nd movie, but I cannot close the main menu without closing the film.

    Any help would be appreciated.

    Kind regards

    No worries found a solution, I just selected the film only in my iTunes list, has not noticed it before. Just goes to the film without having to go through iTunes extra version.

Maybe you are looking for