Controlling the main time line of a movie via a button within a movie on a different level.

Hi there!
I have two movie is two different levels,
Level 5 is my base movie and I am loading another movie on
top of this into level 10.
Once the user clicks onto a button within the movie on level
10, I would like the animation in level 5 to stop (the animation
runs on the main root timeline of level 5).
Once the user clicks on a different button within the movie
on level 10, I would like the animation on the main timeline of the
movie in level 5 to start again from the point where it previously
left off.
Is this possible?
It would be great if someone could help me out with this.
Thanks, midi_ie

midi_ie wrote:
> Hi there!
> I have two movie is two different levels,
> Level 5 is my base movie and I am loading another movie
on top of this into
> level 10.
> Once the user clicks onto a button within the movie on
level 10, I would like
> the animation in level 5 to stop (the animation runs on
the main root timeline
> of level 5).
>
> Once the user clicks on a different button within the
movie on level 10, I
> would like the animation on the main timeline of the
movie in level 5 to start
> again from the point where it previously left off.
> Is this possible?
_level5.gotoAndPlay("someLabelframe");
Use your regular action to target timeline or movie clips,
just define the level number at the beginning of the path.
Pretty much it :)
Best Regards
Urami
!!!!!!! Merry Christmas !!!!!!!
Happy New Year
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>

Similar Messages

  • How do I acces a var from the main time line in to a movieclip?

    I'm making a quiz-type animation, since I'm new with ActionScript I had developed my own way to make this work.
    I want to add like a meter that shows one out three position depending on the answer given, I had made this animation as a movieclip but now I need it to react according to the answer, so it changes on every question to do that I need to access the variables I'm using in the main time line, how can I access the the main time line variables from the movie clip?
    The movie clip (meter) is basically the background and the questions will change and advance on top of that movie clip so it'll change with each answer until you get the final result.
    Since I cant attached my FLA file here I could email my it to whom may want to help me, THANK YOU!!!

    I kinda of make it work using what you suggested: var meterVar = MovieClip(this.root).userAnswer;, but I have different problems now I'm getting this error: TypeError: Error #1009: Cannot access a property or method of a null object reference.
         at divameter2_fla::MovieClip_1/frame1() and the meter movieclip only change from the original position to the second and stays there even if the first answer supose to sent it to the third or four position. here is the code for the main and movie clip:
    Main:
    The following code I have it in separate frames, I know is probbably not the best way to do it but I'm new with AS.
    Frame 1:
    stop();
    messageBox.text = "";
    var userAnswer:int;
    var rbg:Object = rbA.group;
    var finalScore:int;
    btnCheck.addEventListener(MouseEvent.CLICK, nextBtn);
    function nextBtn(evt:MouseEvent):void {
                 userAnswer = int(rbg.selectedData);
                 if(userAnswer == 0) {messageBox.text = "Please select an option";
                 }else{
                     finalScore = userAnswer;
                     gotoAndPlay(2);
    Frame 2:
    stop();
    messageBox.text = "";
    var rbbg:Object = rbbA.group;
    btnCheckTwo.addEventListener(MouseEvent.CLICK, nextBtnTwo);
    function nextBtnTwo (evt:MouseEvent):void {
                 userAnswer = int(rbbg.selectedData);
                 if(userAnswer == 0) {messageBox.text = "Please select an option";
                 }else{
                     finalScore = finalScore + userAnswer;
                     gotoAndPlay(3);
    Frame 3:
    stop();
    messageBox.text = "";
    var rbcg:Object = rbcA.group;
    btnCheckThree.addEventListener(MouseEvent.CLICK, nextBtnThree);
    function nextBtnThree (evt:MouseEvent):void {
                 userAnswer = int(rbcg.selectedData);
                 if(userAnswer == 0) {messageBox.text = "Please select an option";
                 }else{
                     finalScore = finalScore + userAnswer;
                     gotoAndPlay(4);
    Frame 4:
    stop();
    messageBox.text = "";
    var rbdg:Object = rbdA.group;
    btnCheckFour.addEventListener(MouseEvent.CLICK, nextBtnFour);
    function nextBtnFour (evt:MouseEvent):void {
                 userAnswer = int(rbdg.selectedData);
                 if(userAnswer == 0) {messageBox.text = "Please select an option";
                 }else{
                     finalScore = finalScore + userAnswer;
                     gotoAndPlay(5);
    Frame 5:
    stop();
    messageBox.text = "";
    var rbeg:Object = rbeA.group;
    btnCheckFinish.addEventListener(MouseEvent.CLICK, finishBtn);
    function finishBtn (evt:MouseEvent):void {
                 userAnswer = int(rbdg.selectedData);
                 if(userAnswer == 0) {messageBox.text = "Please select an option";
                 }else{
                     finalScore = finalScore + userAnswer;
                     if (finalScore > 4) gotoAndPlay(6);
                     if (finalScore > 9) gotoAndPlay(7);
                     if (finalScore > 13) gotoAndPlay(8);
    The las theree frames are the 3 different results and the code they have is only a stop();
    The following is the movieclip code:
    stop();
    var meterVar = MovieClip(this.root).userAnswer;
    var btnCheck = MovieClip(this.root).btnCheck;
    var btnCheckTwo = MovieClip(this.root).btnCheckTwo;
    var btnCheckThree = MovieClip(this.root).btnCheckThree;
    var btnCheckFour = MovieClip(this.root).btnCheckFour;
    btnCheck.addEventListener(MouseEvent.CLICK, nextBtn);
         function nextBtn (evt:MouseEvent):void {
                 if (meterVar == 1) {gotoAndPlay(2);
                     if (meterVar == 2) gotoAndPlay(3);
                     if (meterVar == 3) gotoAndPlay(4);
                 }else{ gotoAndPlay (1);
    btnCheckTwo.addEventListener(MouseEvent.CLICK, nextBtnTwo);
         function nextBtnTwo (evt:MouseEvent):void {
                 if (meterVar == 1) {gotoAndPlay(2);
                     if (meterVar == 2) gotoAndPlay(3);
                     if (meterVar == 3) gotoAndPlay(4);
                 }else{ gotoAndPlay (1);
    btnCheckThree.addEventListener(MouseEvent.CLICK, nextBtnThree);
         function nextBtnThree (evt:MouseEvent):void {
                 if (meterVar == 1) {gotoAndPlay(2);
                     if (meterVar == 2) gotoAndPlay(3);
                     if (meterVar == 3) gotoAndPlay(4);
                 }else{ gotoAndPlay (1);
    btnCheckFour.addEventListener(MouseEvent.CLICK, nextBtnFour);
         function nextBtnFour (evt:MouseEvent):void {
                 if (meterVar == 1) {gotoAndPlay(2);
                     if (meterVar == 2) gotoAndPlay(3);
                     if (meterVar == 3) gotoAndPlay(4);
                 }else{ gotoAndPlay (1);
    I had attached the almost working FWS file

  • Can I access a label inside of an MC and then go back to the main time line

    Here is my current set up.
    I have a labeled section on main time line which has icons of 12 different videos. Each icon acts as a button and brings a user to a labeled section with a FLV Video Playback component impemented to play the corresponding video. These labeled sections are located on the main time.
    This methog makes my main time line very long. Is there a way to make an additional MC which will hold all the video buttons and then have this MC separated into labeled sections.
    In other words can I access a label inside of an MC and then go back to the main time line?
    My present code for accessing the label located on the main timeline is:
    HowTo_maininfo_mc.theArrangement_btn.addEventListener(MouseEvent.CLICK, theArrangement_btn_amimated_btnDown);
    function theArrangement_btn_amimated_btnDown(event:MouseEvent):void {
    gotoAndPlay("theArrangement");
    How would it look if my label "theArrangement" would be located inside of an MC?
    Is there any specific code if I want to have a close button located on the label inside of an MC and it needs to fire out to a label located on the main timeline?

    Oh, WOW! It is working perfectly now.
    My mistake was that I was specifiying the var sourceVar:String;
    for every single button. It was not clear to me from the first example that it has to be specified only once.
    I made a small test Flash file and everything works now. It still doesn't work on my big flash file, I guess some other code messes it up and I can' not figure what it is exactly.
    I would like to include the OUTPUT error message in hopes that you can spot right away what a mistake could be:
    VideoError: 1000: Unable to make connection to server or to find FLV on server
              at fl.video::VideoPlayer/stop()
              at fl.video::FLVPlayback/stop()
              at acolyteVideos_fla::mainsite_mc_2/stopF2()[acolyteVideos_fla.mainsite_mc_2::frame484:21]
              at flash.display::MovieClip/gotoAndPlay()
              at acolyteVideos_fla::mainsite_mc_2/onClick_GoBackToHowTo2()[acolyteVideos_fla.mainsite_mc_2 ::frame484:13]
    If there is no immediate cure for it, I will go through code line by line. Since it is working on the test it must be something wrong with my main file.
    Additiona question (please let me know if I should paste it as a new thread)
    I have similar set up with UILoader. Where different buttons set up to bring a user to individual labeled sections with individual UILoader. Should it be arranged in the same way that it is only one loader and "var sourceVar:String;" code is the one which brings up different content for each button?

  • Access the main time line function

    Hi all,
    In as2 we can use _root to access the main timeline function from the inside some movieclip or button.
    In as3 how to access the main timeline function from inside the movieclip or button.can any one please tell me.

    "root" is the AS3 equivalent, but using it alone will often not wortk.  You more often need to cast it as some form of object before the compiler will recognize it.  Using "MovieClip(root)" will usually do the trick.

  • Have keyframes in effect controls window coincide with main time line

    Hello,
    Is there any way I can have the time line in my effects control window coincide with my main time line ?
    Example,  I add keyframes along my main time line, but any time I wish to edit  them, I need to scrub my effect controls window timeline to get to that
    spot  that coincides on the main time line.  I'm just wondering how I can  have both time lines show the same area at the same time.
    So  if I'm at the end of my time line, and add a keyframe, and then wish to  just scrub or move my cursor to the beginning of my main time line, the
    time  line in the upper window ( effects control window ) does not reflect  the area of the main time line I am currently at, I need to actually  click the time time
    line ( main time line ) in order to "refresh" the upper effect control window time line.
    Thanks for any advice,
    Dave.

    Hi Jim,
    that's what I mean, thanks for info.  I guess this isn't a popular want from users, I just thought it would be neat if we could do this, it's not a big deal, but I thought
    I would ask.  Thanks for the informatiion - at least I know now.
    Dave
    JSS1138 wrote:
    I think he wants the CTI of the Effects pane to match the CTI of the sequence.  If one moves, the other moves as well.
    In CS4 this happens by default.  Has that changed for CS5?

  • How load variables to a movie clip on a masked layer on my main time line

    the problem I have is that I been trying to load text from a
    text file news.txt into a movie clip on my main time line the
    problem is when the layer where the video clip is locates is masked
    the variables will not load, but it does work when the layer is
    unmasked, but then the website does not work the way it is suposed
    to look.
    any Idea on how I can get arround this????

    PArt of the problem will be due to declaring the uiLoader inside of a function.  When you do that you limit its scope to within that function.  You should declare it outside of any function if you need to access it in more than one function.
    import flash.events.MouseEvent;
    import fl.motion.MotionEvent;
    var uiLoader:UILoader;
    var targetObj:Object;
    The other problems I see regard the line you point to.  It is not spelling the name the same, using a lowercase "l". Also, if you want to target what the UILoader contains, you should target its "content" property, as in...
    targetObj = uiLoader.content.mask_01

  • Pxie-6556 - How to control the rise time in the digital lines (hsdio)

    Hi,
    Is there any way to control the rise time in the PXIe-6556 digital lines?
    Even in a low frequency signal 10kHz the rise time is about 2ns.  
    Tks,
    Solved!
    Go to Solution.

    Hello engfpe,
    The PXIe-6556 is a 50 Ohm system, meaning the output is source series terminated to be 50 Ohms and all our cables and accessories are 50 Ohms.  With this setup regardless of the data rate you should have a clean rising or falling edge regardless of the data rate. The quality of the output (rising or falling edge) at your device will be related to the impedance matching of your cables. 
    The PXIe-6556 cannot adjust the slew rate by itself.  However you can insert some simple passive components to do this for you.  I've attached below to images.  The first is a schematic showing one way of slowing down the edge.  The second is the a simulated waveform showing the original edge rate before slowing it down, and the slowed down edge.   This simulation is not of the PXIe-6556 but instead a generic digital output for concept.  In the schematic R1 is set to 34 Ohms because U1.8 has the additional 16 Ohms inside it.  TL1 is the 50 Ohm output simulating the cable on the PXIe-6556.  R2, R3 and C1 are components you could insert after the PXIe-6556 cable before it goes to your device/cables.  In this setup the cable going to your device is TL2 which is also 50 Ohms but it could be another impedance in which case you would change R3 to match.
    You can see in the attached images you can significantly slow down the edge with this setup by altering C1.  I hope this helps,
    Jesse O. | National Instruments R&D
    Attachments:
    edge_compare_schematic.jpg ‏94 KB
    edge_compare_waveform.jpg ‏44 KB

  • Toolkit for CreateJS: How to control the main timeline from outside the canvas.

    Hey Everyone,
    I'm currently trying to do something simple, but my animation breaks whenever I attempt to change my code. I have created a basic animation in Flash where an object moves from the left side of the canvas, to the right, and then loops from the last frame to the first frame. Nothing else. The animation is simply put on the main timeline. I exported the animation with Toolkit for CreateJS through Flash's extension and the animation runs as it should. I am trying to start and stop (restarting from the first frame) the animation with mouse over and mouse off events. I want the events to fire when moused over/off a div OUTSIDE the animation's canvas tag. Is this possible with CreateJS? I'm trying to figure out how to control the main timeline without being inside the canvas tag.
    Example HTML:
    http://www.thephotoncore.com/testing/example_test.html
    Example Code:
    <section id="container">
      <canvas id="canvas" width="550" height="400" style="background-color:#cccccc"></canvas>
      <section id="animation_control">
        <p>Roll over to start and stop animation.</p>
      </section>
    </section>
    Thanks again for the help!
    -DJ

    Hi DjPhantasy5,
    All movieclips on the stage are children of the stage,
    So on the "mouseover" all movieclips on the stage could be stopped with stop and on the "mouseout" all children could be restarted with gotoAndPlay like this:
    function Stop()
              if (stage && stage.children)
                        var i, l = stage.children.length;
                        for (i = 0; i < l; i++)
                                  var child = stage.children[i];
                                  if ("stop" in child)
                                            child.stop();
    function Restart()
              if (stage && stage.children)
                        var i, l = stage.children.length;
                        for (i = 0; i < l; i++)
                                  var child = stage.children[i];
                                  if ("gotoAndPlay" in child)
                                            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 code to "ball1" like so:
    /* js
    document.ball1 = this;
    Then the stopping of the animation would look like:
    function Stop()
         if ("ball1" in document)
              document.ball1.stop();
    etc.
    Have fun!
    Ronald

  • Replacing the music in the prime time line

    I am working on a music project with dozends of audio file in the prime time line and hundres of video clips joint to them. 
    Now I have re-recorded the music and want to replace all the old audio files by one new audio file (with a lenght of nealy two hours) but keep all the joint video clips joint to the original audio tracks. (of course I have to move them a bit to adjust them to the new music track)
    How to proceed ?

    SSelect all the clips in the primary and make them a compound clip. Drag your new file onto the compound and use the replace function.

  • IS the audio time line gone?

    In older versions there was a time line for adjusting the volume (mixing)
    over the period of your movie. I think that is now gone right?
    I keep using the older version because I can incrimentally tweek volumes that
    clash with other things like dialogue.

    So what is a guy to do?
    I use (and like) both iMovie 09 and iMovie 06. But when I need the audio time line or better quality I use iMovie 06.
    If you like iMovie 06 better, as many do, you can continue to use it. I find that it works perfectly with my Mac Pro, iDVD 09 and the latest Mac OS.

  • How to control the looping time of the for loop in 10 microseconds in labview?

    I need to create a +/- 9 volt square wave with period of 20us using a D/A card (Not NI card). I can write command to the card using outport provide by Labview. Right now, I can generate square wave with 4ms period which is limited by the resolution of the wait until next ms icon I used inside the for loop. Could anyone tell me how to control the execution time of the for loop to about 10 us? Your help would be much appreciated.

    I'm not sure if this will hep, but this answer seems to answer this question
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000029410000&UCATEGORY_0=_30_%24_12_&UCATEGORY_S=0&USEARCHCONTEXT_QUESTION_0=microsecond+resolution+1ms&USEARCHCONTEXT_QUESTION_S=0

  • [Urgent!!]How to control the running time??

    Hi,
    I'm an undergraduate researcher in the University of Michigan. I used NI labVIEW FPGA on my current project and now i meet a problem.
    I have a labview code that has runs with 3 subroutines. they execute one after another for a given time period for each iteration of the entire code. that is i built them in a flat sequence structure inside a large while loop and each of the subroutine is a while loop with several subvi's in it. not that complicated but i have to specify how long each subroutine runs. now i have a problem to set that execution time. i don't know exactly what kind of timing function i shall use. i tried the "Elapsed time" function but that only works for the first iteration. from the second iteration on each subroutine only runs for once, instead of continuing to run until the given time elapsed. so i don't know how to correctly control the running time. It's reallly urgent, so could you please give me some suggestions about it? Thanks a million!!
    Xiaofei

    Thank you for your suggestion!
    sorry but that this method won't help because my code is sort of difficult to put into a for loop .
    the logic is like this: first the output is set to 0 for a user-defined amount of time (means no excitation). secondly it gets excitation and gets output but no data saving is allowed for a user-defined amount of time. at the same time, one paramater is automatically changed. (the reason for not saving data is that there is a transient response when the parameter changes). thirdly, data saving begins with the same
    parameters as before, also for a user-defined amount of time. and then after these three steps one iteration is done. for iterations there is a different parameter, the user defines the range of the parameter and the number of different values in between and the code will do the increment at equal intervals automatically. my problem now is that i don't know how to correctly control the time. i have tried various ways but no one works.
    the second problem is that i don't know how to let it run and not saving data and then saving data without changing everything else. what i have now is to call the same VI twice, once for only running and no data saving and the other for saving data. but then the problem is that in between these two routines, the output suddenly becomes zero and gets excited again after i call it.  My professor said that i cannot let the output become zero, otherwise there is no meaning in waiting for the excitation to become stablee. but then i don't know how to call a VI only once and let it do the saving for only the latter part of the running time. i have been working on this thing for two weeks now and still have no idea....Sorry the problem is long and tedious, but if anyone have any idea about it, please let me know, i will be most grateful. Thanks a million!!!

  • Making my 2nd BT line the main phone line

    Hi
    I've been trying to find a solution for this with no luck. Spoken to several BT engineers (all based abroad!) and no one seems to understand the issue, let alone help. A pointer in the right direction would be hugely appreciated!
    We have 2 lines coming into the flat - Let's call them Line 1 and Line 2. Line 1 is the main line around the house. If you plug any basic phone into a socket in any room, you get Line 1.
    We have a Panasonic PBX system with both Line 1 and Line 2 going into it. Plug in a programmed Panasonic phone into any socket, and you get both line 1 and 2 available from the phone's selection menu.
    We are dropping Line 1 and want to make Line 2 the main line in the house (Line 1 is hardly used anymore). We want to be able to plug a basic phone into any socket and get Line 2 by default. We also want to remove the PBX, although this is less of a priority. Main thing is to make Line 2 the default standard house line, and change our phones to basic standard phones.
    I must be asking the wrong questions as I can’t find anyone than can help. Is this something BT can do? Is it the company that set up the PBX system (Spitfire I believe)?. Is it something I can do (I’m not hugely technical, but can follow basic steps)? What do I need to ask for, and to whom? 
    We do have a Cable & Wireless box near the PBX with two ethernet style cables coming out of them. They are labelled with the actual phone numbers of Line 1 and Line 2. I tried swapping those round, but it made no difference. Line 1 was still the main line. I suspect this is something compeltely unelated. 
    Thanks in advance for any help.
    Cheers

    This was originally sold as a business system, was there once a business operating from the premises?
    I have asked a moderator to provide assistance, they will post an invite on this thread.
    They are the only BT employees on this forum, and are a UK based team of people, who take personal ownership of your problem.
    Once you get a reply, if you click on their name, you will see a screen like this. Click on the link as shown below.
    Please do not send them a personal message, as they may not be on duty for a long time, and your message will not be tracked properly.
    For your own security, do not post any personal details, on this forum. That includes any tracking number you are give.
    They will respond either by phone or e-mail within 5-6 working days.
    Please use the tracked e-mail, to reply, not via the forum. Thanks
    This is the form you should see when you click on the link. If you do not see this form, then you have selected the wrong link.
    When you submit the form, you will receive an enquiry number, so please keep a note of it
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Using an mc to control the main timeline with multiple scenes

    OK, I have a main timeline that has 27 different scenes.  I have a movie clip that is an "on call" navigation menu for the main timeline.  I can call the menu once, and it will go to the first place I want it to go.  However, I cannot seem to figure out how to get it to go away to be able to call it again.  I get the "must be child of caller" error.  Any thoughts on how to get rid of it each time I use it?

    A button is clicked which calls the following AS3 code:
    MovieClip(this.root).addChild(myMenu);

  • Where did the current-time-line go in Calender?

    I can't find the line that says what the current time is in Calender.. Is there any way to put it or get it back in? IMO it was one of the features why Calender was a really good app. It looks like Apple just forgot to put it in... Is this going to be updated.
    Should look something like this;(like we had before)
    https://www.dropbox.com/s/3dtvkw37vkw70hj/Screenshot%202013-10-25%2015.01.122.jp g

    I can’t tell you what’s causing it, but it is working fine here. The line is red and moves with the current time. But it is only visible when you are in the current week. If I move to the prior or next week it won’t show.

Maybe you are looking for

  • How do I set up a distribution list with multiple email addresses?

    I can't figure out how to do this - I am a .mac member and really have no idea how to use the desktop mail function but I am assuming that I need to set up the distribution list in mail since I can't find anywhere to do it on .mac. I am really sorry

  • 1st Gen iPod Touch "An unknown error occurred (1)"

    First one iPod Touch 1st Generation device wouldn't sync (a few weeks back) and now today an older iPod Touch 1st Generation device has also failed to sync, both with iTunes 11.1.4. Connecting the devices with the USB cable that has just charged an i

  • Firefox keeps causing internet conenction to drop when I try to load a session

    I'm using Firefox 11 on Windows Vista Home Premium 64-bit, and I'm using a cable modem and a wireless router, with my computer connected to the router via Ethernet, and this problem is driving me absolutely INSANE! When I try to reload a session in F

  • Merged Help opens in new window (RH X7)

    Hi, I'm merging webhelp projects in RoboHelp X7. I have one master project and 2 subprojects. In the TOC, the 2 subprojects have been merged into the master project. After having generated the WebHelp layout for the master project and when clicking o

  • Rotating video 90 degrees

    my wife shot a short 640x480 mpg clip of my son on a digital still camera but was holding it vertically. I used the perspective rotate filter to rotate it correctly but it now is stretched to fit the 640x480 timeline. what I want is the image rotated