GotoAndPlay instead stops

Hello,
I have a script within a frame that initiates a stop, a time
delay, and then a gotoAndPlay () - See attached code. That all
works great! However, when I gotoAndPlay (2) it just stops in frame
2 rather than playing from that point. In fact I can nicely go to
any Frame I want - as long as I want to just stop there. There are
no other scripts or hidden stop () commands lurking anywhere. Its a
very clean and open timeline. Whats the deal?
Any help - greatly appreciated.
Steve

You have an onEnterFrame function that is running
continuously, even after you think you've finished with it. So,
what is happening is that when the if condition returns true the
first time, the playback head will jump forward to frame 2.
However, the onEnterFrame function will continue to run. And the if
condition will still be true, and so the playback head will get
pulled back to frame 2, over and over, and over...
What you want to do is to kill the onEnterFrame function when
you are finished with it. You can do that by putting
"delete onEnterFrame" after the gotoAndPlay(2);
line.
Alternately, you could use a setInterval function and then
use clearInterval to remove the event.

Similar Messages

  • GotoAndPlay Just Stops

    I am using gotoAndPlay in a function with ENTER_FRAME event.
    I believe that it goes to the frame (used trace) but it just stops
    and won't play. I have been working on this for a couple of hours
    and the closest thing I could find to an answer was this post
    "gotoAndPlay won't work with the enterFrame event.
    for example in the '_parent.gotoAndPlay(45)' , the playhead
    will keep going to that frame 45 and will never get further.
    You'll need to workaround that (using variables + a loop in
    the _parent for instance). "
    Could someone explain this and give me some type of work
    around. My code is below

    what do you expect will happen when you repeatedly direct to
    "energyStart"? how can the playhead possibly advance past that
    frame while your loop is executing?
    so HINT: terminate that loop when inFrame is called which
    begs the question, "why use an ENTER_FRAME loop, at all"?

  • S10 - Installation WIN 7 stops on "starting windows" screen

    HELLO! I am trying to INSTALL WINDOW 7 64bit and 32bit but all over the installation of window after arrival last reboot where I should ask all the configuration PC and instead stops on the screen "Starting Windows." you did you install it? thanks to the availability (the pc is always the same ThinkStation S10 6423-26G)
    Moderator note: Subject line adjusted to match the problem

    I have seen this issue before. If you can borrow another persons graphics card do so. I had to put a cheap pci or pci-e card in mine in order for it to boot. Then once it does you can boot into safe mode and install the nvidia driver. At that point you can shut down and put your quadro back in and continue. Mine did the same thing.
    Thanks
    Larry

  • Problem with music in swf file when loading site to server

    Hello,
    I am a newbie to Flash and have an swf file I created for a
    website,
    http://www.kanzamancleveland.com.
    I have a button there that turns the music on/off when the site
    loads. I also put some music into the swf file, but instead of
    putting it directly in the swf file, I am calling it from the
    actionscript code in the swf file. I want it to stream when the
    site loads and start loading/playing after the site loads. The code
    is embedded in the on/off button. Now this code works when the swf
    file is on my local hard-drive, but when I put it on the server
    with the rest of the website, it doesn't work. Any ideas?
    Here is the code:
    import fl.motion.Keyframe;
    import flash.display.MovieClip;
    import flash.media.Sound;
    import flash.media.SoundChannel;
    import flash.net.URLRequest;
    import flash.events.Event;
    import flash.events.MouseEvent;
    var _sound:Sound;
    var _channel:SoundChannel;
    var _playing:Boolean = false;
    var _position:int;
    var request:URLRequest = new URLRequest("lowsaaloony.mp3");
    var buffer:SoundLoaderContext = new SoundLoaderContext(5000);
    _sound = new Sound( );
    _sound.load(request, buffer);
    _channel = _sound.play( );
    _playing = true;
    offbtn.addEventListener(MouseEvent.MOUSE_UP, onPlayPause);
    function onPlayPause(event:MouseEvent):void {
    if (_playing) {
    _position = _channel.position;
    _channel.stop( );
    } else {
    _channel = _sound.play(_position);
    _playing = !_playing;
    gotoAndPlay(2);
    stop();
    I put the code together going from various Flash help
    websites, and it works when everything is on my local hd, but again
    as I mentioned before, when I put it up on the server, the music
    doesn't play. I contacted the hosting company and they said that
    they do allow streaming music on a website using Flash. Any help on
    what I am doing wrong, or what else I need to do would be highly
    appreciated. Thank you.
    Jay

    Hi. It looks like your code is not finding the mp3. At least,
    I can reproduce your error code by removing the mp3 from the
    directory, or renaming it.
    Btw, if you test with FF instead of IE, you'd see the error:
    Error #2044: Unhandled IOErrorEvent:. text=Error #2032:
    Stream Error.
    at KZFlash_fla::Sound_2/KZFlash_fla::frame1()
    Hope that helps.

  • Need to loop to certain point on mouse-click

    Hello,
    for work I am trying to create a visual for a simple electric circuit. What I want is that when the circuit opening is clicked, it closes and the light bulb comes on. When it is clicked again, it opens and the light bulb turns off.
    I have it working fine when I try to play it one time through. However, I do not know how to send it back to the beginning and run through the entire timeline again.
    On frame 1 I have this actionscript:
    stop();
    movieClip_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_3);
    function fl_ClickToGoToAndPlayFromFrame_3(event:MouseEvent):void
    gotoAndPlay(2);
    This plays till frame 11, which has the script:
    movieClip_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame);
    function fl_ClickToGoToAndPlayFromFrame(event:MouseEvent):void
    gotoAndPlay(13);
    stop();
    It then plays till the end (frame 24), where I put in the script:
    movieClip_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayAtFrame);
    function fl_ClickToGoToAndPlayAtFrame(event:MouseEvent):void
    gotoAndPlay(2);
    Everything works great, even when it is sent back to frame 2. The problem is that when it reaches 11 again, clicking the mouse always sends it back to 2 instead of on to 13.
    I hope this makes sense, I don't really know any better ways to explain it. It's probably a simple fix, but I'm new to actionscript and this has been driving me crazy. Any help would be appreciated.
    Thanks,
    Emily

    use:
    On frame 1 I have this actionscript:
    stop();
    movieClip_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_3);
    function fl_ClickToGoToAndPlayFromFrame_3(event:MouseEvent):void
    gotoAndPlay(2);
    This plays till frame 11, which has the script:
    movieClip_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame);
    function fl_ClickToGoToAndPlayFromFrame(event:MouseEvent):void
    gotoAndPlay(13);
    stop();
    It then plays till the end (frame 24), where I put in the script:
    movieClip_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayAtFrame24);
    function fl_ClickToGoToAndPlayAtFrame24(event:MouseEvent):void
    gotoAndPlay(2);
    Everything works great, even when it is sent back to frame 2. The problem is that when it reaches 11 again, clicking the mouse always sends it back to 2 instead of on to 13.
    I hope this makes sense, I don't really know any better ways to explain it. It's probably a simple fix, but I'm new to actionscript and this has been driving me crazy. Any help would be appreciated.
    Thanks,
    Emily

  • How do I get the Interval to keep from repeating after it's used once?

    How do I get the Interval to keep from repeating after it's used once? Because I tried clearInterval but I couldn't get it working.
    When my code looks like this, with ClearInterval, it refuses to execute my action, which is to change scenes after a short interval:
    (Pardon if there is some formating errors, I had to reformat it for the Internet)
    Code with clearInterval command
    stop(); 
    Kollektiv.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_2);
    function fl_ClickToGoToAndPlayFromFrame_2(event:MouseEvent):void{
       gotoAndPlay(29);   
       var myInterval:uint = setInterval(fl_ClickToGoToNextScene_14,3000);   
       clearInterval(myInterval);
    function fl_ClickToGoToScene_14(event:MouseEvent):void{
        MovieClip(this.root).gotoAndPlay(1, "Testside");
    However, when my code looks like this it refuses to stop looping:
    Code without ClearInterval command
    stop();
    Kollektiv.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_2);
       function fl_ClickToGoToAndPlayFromFrame_2(event:MouseEvent):void{
       gotoAndPlay(29);
       setInterval(fl_ClickToGoToNextScene_14,3000);
    function fl_ClickToGoToScene_14(event:MouseEvent):void{
        MovieClip(this.root).gotoAndPlay(1, "Testside");
    Any ideas? Also, feel free to dumb your answer down, because I am completely new to Flash, Actionscript and coding.

    If you insist on using setInterval - you need to declare interval id in a higher scope so that you can clear it later:
    stop();
    var myInterval:uint;
    Kollektiv.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_2);
    function fl_ClickToGoToAndPlayFromFrame_2(event:MouseEvent):void
              gotoAndPlay(29);
              myInterval = setInterval(fl_ClickToGoToNextScene_14, 3000);
    function fl_ClickToGoToScene_14():void
              clearInterval(myInterval);
              MovieClip(this.root).gotoAndPlay(1, "Testside");
    I suggest you use Timer instead:
    stop();
    import flash.events.TimerEvent;
    import flash.utils.Timer;
    var timer:Timer = new Timer(3000, 1);
    timer.addEventListener(TimerEvent.TIMER, fl_ClickToGoToScene_14);
    function fl_ClickToGoToAndPlayFromFrame_2(event:MouseEvent):void
              timer.start();
              gotoAndPlay(29);
    function fl_ClickToGoToScene_14(event:TimerEvent):void
              timer.stop();
              MovieClip(this.root).gotoAndPlay(1, "Testside");

  • Code Problem or Bug?

    I have a problem that seems simple to the core.  I can easily duplicate it and I am not sure why it's happening.  Here's the steps:
    1. Drag a button to the stage and give it an instance name (btnHello).
    2. Create a new layer (for Actions).
    3. On frame 1 (of the Actions layer), put in the following code:
         btnHello.addEventListener(MouseEvent.MOUSE_UP, goHello);
         function goHello(event:MouseEvent):void{
         gotoAndPlay(5);
         stop();
    4. On frame 5, put in the following code:
         trace("Frame 5");
         stop();
    5. On frame 10, put in the following code:
         trace("Frame 10");
         stop();
    Pretty straight-forward.  It is a button that is hard coded to go to Frame 5 when clicked, which it does do.  However, if I am already on Frame 5 when I click it, it jumps to Frame 10.  If I click it again, it junmps back to Frame 5, click again, Frame 10.
    This is causing some serious issues with my navigation / flow.  Does anyone know why it's happening and what I can do to preevent it?
    Thanks.
    Dave

    I tested this to know for sure my inclination was correct.
    When you are on frame 5, and you call a gotoAndPlay(5); - you are essentially just telling the playhead to play, since its already on that frame.  So, what happens is it goes to frame 6, where there are no stop actions, plays through to 10, and fires that trace and stop().
    You can do one of two things.
    1. Use gotoAndStop(5) instead of gotoAndPlay - which will only fire the trace once, since the playhead won't leave the frame if you are already on it.  But it will fix your jumping issue.
    2. Check the current frame and only call the gotoAndPlay if you are not on that frame.
         function goHello(event:MouseEvent):void{
              if(currentFrame != 5){
                   gotoAndPlay(5);
              }else{
                   trace("Frame 5 again");

  • Preloading folders of content with PreloadAssetManager?

    I'm currently using the following code to preload images into the browsers cache:
    import gs.dataTransfer.PreloadAssetManager;
    var preloader_obj = new PreloadAssetManager(["images/SS001small.jpg","images/sticker.jpg"], onFinish);
    this.onEnterFrame = function() { //Just to update the preload status bar
        preloader_mc.bar_mc._xscale = preloader_obj.percentLoaded_num;
        preloader_mc.percent_tf.text = Math.round(preloader_obj.percentLoaded_num) + "%";
    function onFinish(pl_obj:PreloadAssetManager):Void { //Gets called when all the assets are preloaded.
        trace("Finished preloading all " + pl_obj.assets_array.length + " assets!");
        var a = pl_obj.assets_array;
        for (var i = 0; i < a.length; i++) {
            trace("--Asset: " + a[i].url_str + " had a width of: " + a[i].width + ", a height of: "+a[i].height);
            if (a[i].fileType_str == "flv") {
                trace("FLV duration: "+a[i].duration);
        _root.onEnterFrame = null;
        gotoAndPlay("start");
    stop();
    these images are embedded using <img> tags in .xml files to make the website easy to update. At the moment everything works great, but the problem is that the code I have for my preloader requires you to list all of the images seperatly, which defeats the purpose of updating the content via XML. (Obviously, if you add any more images to the folder, you will need to edit the main website file to update the preloader)
    Is there a way I can somehow tell this code to load all images inside the /images folder instead of listing the images seperatly?

    Hello, if this is happening on multiple computers Intel and PPC, I doubt it is a new bug.
    It sounds like a permissions problem. How is the backup drive formatted and or partitioned?
    I just remembered something...some HD manufacturers blocked users from copying copy-write
    material to some external drives(MP3's for example)...what type of external drive do you have?
    You might be able to solve it by right-clicking (Ctrl-Click) the folder in question and select
    "Get Info" from the drop down menu. At the bottom, click to unlock the "Permissions & Sharing"
    then see if "Everyone" is "Read & Write" (you can change this by clicking the arrows under "privileges"
    After Changed click on the gear icon just right of the +/- buttons and choose "Apply to inclosed items"
    This MAY work...but I don't have this problem w/my systems.
    Cheers,
    Glynn

  • Looping a streaming flv movie, but loop to halfway through flv

    Hello,
    I've managed to loop my progressively streaming flv with both the following approaches (both gained from these forums - so thank you very much!)
    Giving my FLV an instance name of "vid" and then adding this to an Action layer:
    var vidList : Object = new Object();
    vidList.complete = function() {
    vid.play();
    vid.addEventListener ("complete",vidList);
    stop();
    Or simply attaching the following to the FLV itself:
    on (complete){
    this.autoRewind=true;
    this.play();
    However, what I really want to do is have it loop back to a point, say, 5 seconds into the flv. I've tried gotoAndPlay instead of just play, but of course the swf only has the one frame so I don't think frame numbers are the way forward? I've been seeing "cuepoints" and "NetStream" coming up in various searches I've done - is that the way forward? They both seem quite complicated for something that I've almost solved using either of the above.
    Any ideas?
    Thanks,
    Tim

    If it's scripted to be initially paused, you can simply
    position it in
    the score to be off stage, insert a key frame at the frame
    were position
    moves to display location.

  • Different page sizes in one pdf file will not scale to print correctly

    Hello all,
         I have a pdf document that contains three different page sizes; 8.5"x11", 11"x17" and 34"x22".  These pdf files are custom manuals and we print many of these over the course of a month.
         In the older versions of Adobe Acrobat when printing this type of file, I could click print, select the page setup size to 11"x17", then select shrink oversize pages (or fit, depending), and choose paper by pdf page size and I would get the following pages from the printer - 8.5"x11" page would print on a 8.5"x11" paper, 11"x17" on 11"x17" and (most importantly) 34"x22" on 11"x17".  We do this because our printer does not have paper larger than 11"x17" yet the customer also receives a soft copy of the file and many times prints the large pages full size as needed on their large format plotters.
         With the newer versions of Acrobat, this will not work.  The only way these files will print automatically is to scale the 22"x34" down to 8.5"x11".   Why would I want to scale it smaller than my largest available paper size?  Also, all of the 11"x17" pages in a multi page size document will come out of the printer rotated 180° yet Adobe shows them correctly when the file is opened.
         Also, when I use the settings above, the print preview box shows the document correctly!  The HP technicians have the latest drivers installed and they have shown me where it seems that Adobe is not even sending the larger sheets but instead stops the printing process with an error.  So I try to send a 20 page document but Adobe stops at the first 22x34 page.
         We have now lost our old computers with every last old version of Acrobat that I could use to make this work due to mandatory hardware and OS upgrades.  I must find a way to print these documents without individually selecting different pages to print and then trying to assemble the document afterward.
         How do I preserve the pages sizes in my document and print the large pages scaled down to the largest paper size I have available in my printer?
    Thanks ahead of time.

    Ajlan,
         Thank you for your time.  I am still having the issue.  I am using Adobe reader 11.0.09 and Adobe Acrobat 10.1.12.  Neither one have the option in the print menu that you show for a physical printer.  They only offer that option for an Adobe PDF creation driver.
         It seems as though the printer you have selected in your menu is only for creating a pdf.  I need to physically print the pdf.  Do you have this same option when you select a physical printer?
    (edited to update screen shot)

  • Help using multiple if else statements & manual dynamic xml data input to trigger a goto and play.

    Below is code that has a timer countdown that reads off of the computer. Below in bold is code to read "if it reaches the date, go to and play frame (2).
    timer.removeEventListener(TimerEvent.TIMER, updateTime);
      timer.stop();
      gotoAndPlay(2);
    Below is code that is manual input-   I had set up a dynamic txt field in flash named it : raffle_tix_remain When loaded on to the host I can manulally update the xml code and the change will take effect.
    raffle_tix_remain.text = root.loaderInfo.parameters.raffle_tix_remain;
    My question:  Since the raffle_tix_remain is a manual input from a user to xml  Is there a way to tell flash once it refreshes and "raffle_ tix_ remain"  goes to (0) zero gotoAndPlay(2); and let it play like a "sold out" sign
    i guess that would be a  if else statement. 
    Code Below-----------------
    stop();
    var year:Number = 2011;
    var month:Number = 12;
    var day:Number = 30;
    var finalDate:Date = new Date(year,month-1,day);
    var timer:Timer = new Timer(100);
    timer.addEventListener(TimerEvent.TIMER, updateTime);
    timer.start();
    function updateTime(e:TimerEvent):void{
              var now:Date = new Date();
              var remainTime:Number = finalDate.getTime() - now.getTime();
              if (remainTime >0) {
                        var secs:Number = Math.floor(remainTime/1000);
                        var mins:Number = Math.floor(secs/60);
                        var hours:Number = Math.floor(mins/60);
                        var days:Number = Math.floor(hours/24);
                        var secsText:String = (secs%60).toString();
                        var minsText:String = (mins%60).toString();
                        var hoursText:String = (hours%24).toString();
                        var daysText:String = days.toString();
                        if (secsText.length < 2) {secsText = "0" + secsText;}
                        if (minsText.length < 2) {minsText = "0" + minsText;}
                        if (hoursText.length < 2) {hoursText = "0" + hoursText;}
                        if (daysText.length < 2) {daysText = "0" + daysText;}
                        day_txt.text = daysText;
                        hour_txt.text = hoursText;
                        min_txt.text = minsText;
                        sec_txt.text = secsText;
              else {
                        timer.removeEventListener(TimerEvent.TIMER, updateTime);
                        timer.stop();
                        gotoAndPlay(2);

    stop();
    var year:Number = 2011;
    var month:Number = 12;
    var day:Number = 30;
    var finalDate:Date = new Date(year,month-1,day);
      var now:Date = new Date();
    var timer:Timer = new Timer(1000);
    timer.addEventListener(TimerEvent.TIMER, updateTime);
    timer.start();
    function updateTime(e:TimerEvent):void{
             var remainTime:Number = finalDate.getTime() - now.getTime()-e.currentCount;
              if (remainTime >0 || raffle_tix_remain==0) {
                        var secs:Number = Math.floor(remainTime/1000);
                        var mins:Number = Math.floor(secs/60);
                        var hours:Number = Math.floor(mins/60);
                        var days:Number = Math.floor(hours/24);
                        var secsText:String = (secs%60).toString();
                        var minsText:String = (mins%60).toString();
                        var hoursText:String = (hours%24).toString();
                        var daysText:String = days.toString();
                        if (secsText.length < 2) {secsText = "0" + secsText;}
                        if (minsText.length < 2) {minsText = "0" + minsText;}
                        if (hoursText.length < 2) {hoursText = "0" + hoursText;}
                        if (daysText.length < 2) {daysText = "0" + daysText;}
                        day_txt.text = daysText;
                        hour_txt.text = hoursText;
                        min_txt.text = minsText;
                        sec_txt.text = secsText;
              else {
                        timer.removeEventListener(TimerEvent.TIMER, updateTime);
                        timer.stop();
                        gotoAndPlay(2);

  • How do I repeat image 100% height in a box within the template

    I have built a new template that already has a background image behind the content area.  This background image is 100% width and height.  Now I have made the header area, the content area and the footer area.  What I am needing some help with is:  I want to have a box behind the content area that continues into the footer.  In that box I want a repeated background pattern that continues regardless of the amount of content in the content area.  I know how to do this using tables and code, but I can't seem to figure it out in MUSE.  I have added the box, added the repeated verticle image, but it won't expand downward 100% height.  It just stops at the height of the box that was built in MUSE and then the repeated background stops too...  Can someone explain to me how to do this properly?  It's all I have left and then this site template is complete.
    Tom

    Can you elaborate please.  I have built a template (or master page) with this box in it and it starts just below the line of the header and extends to the bottom of the page. It has a repeated verticle image inside it.  What happens though is that I build a page and assign the master to it, add a content box into the page for text and images.  If the content extends downward past the original size of the master page box height, the box will not extend itself with the height needed for the content.  IE:  if the box is 600px high in the master and then the content is 1000 px high, the box will not expand to the 1000 px height and instead stop at the 600 px height.
    Is there a tutorial with this in it somewhere?  I have build numerous MUSE sites both small and large and have yet to do this repeatable background pattern behind just the content area separate from the background image itself.
    Thanks for your help.
    Tom

  • Accessing a Movie Clip in a parent Scene.

    Setup:
    *Scene 1:
      - MovieClip1
      *Inside MovieClip1:
       - Actions:
         stop();
         next_btn.addEventListener(MouseEvent.CLICK, onNextButtonClicked);
         previous_btn.addEventListener(MouseEvent.CLICK, onPreviousButtonClicked);
         function onNextButtonClicked(e:MouseEvent):void {
         if (currentFrame == totalFrames) {
         gotoAndStop(1);
         } else {
         nextFrame();
         function onPreviousButtonClicked(e:MouseEvent):void {
         if (currentFrame == 1) {
         gotoAndStop(totalFrames);
         } else {
         prevFrame();
        (THIS CODE IS FOR MY NEXT AND PREV BUTTON TO CYCLE THROUGH MY PIECES OF WORK)
       Then I have...
      - Pieces of work Layer:
        This includes each piece on a single frame, with a label name. (5 total frames on this layer)
        Then I have....
        - Next and Prev buttons on a layer
        And Finally....
       - The last layer in this scene has a background frame.
    ***** Now inside each frame containing each piece of work there is:
           1st Layer = Actions
           Containing this code: stop();
           2nd Layer = This is the movie Clip that Fades my pieces of work in.
       ****** Inside this movie Clip of the piece of work fading in will contain:
               1st Layer = Actions
               Containing this code:
    stop();
    function openLabel(event:MouseEvent):void {
    switch (event.currentTarget) {
    case identity_cplogo_btn :
    gotoAndPlay("cplogo_lv");
    break;
    identity_cplogo_btn.addEventListener(MouseEvent.CLICK, openLabel);
    2nd Layer = 1st frame blank, then frame 2-10 contains a movieclip with a label of cplogo_lv. This movie clip is the clip that has a large view of the image popup and darken the background. (Like a lightbox effect)
    3rd layer = the logo which is a BUTTON. THis is located on the first frame and is called "identity_cplogo_btn." So when this is clicked it opens the large view.
    *****Now....
    When I click inside the movieclip that is the lightbox effect and go inside of it there is.....
    1st Layer = Actions with the code of:
    stop();
    function openLabel(event:MouseEvent):void {
    switch (event.currentTarget) {
    case lv_close_btn :
    gotoAndPlay("return");
    lv_close_btn.addEventListener(MouseEvent.CLICK, openLabel);
    ****After the actions keyframe, which is locate on frame 10, there is a label called "return" from frame 11-24. It is a blank label meaning there is nothing on it but the label name.
    2nd Layer = the "Close" button which appears when the large view is opened and is located on frame 10 right underneath the action code.
    3rd Layer = This contains the Large view of the logo, which I have made a movie clip for making it fade in then I paste reverse frames after right underneath the "return" label making it fade out.
    4th Layer = Contains the Dark background that pops up which also fades in then underneath the "return" label it has its' reverse frames which are making it fade out.
    SO... I have the code making it so that when the "Close" button is clicked it is going to the "return" label which is making everything fade out.
    ***************************** NOW WHAT I NEED TO FIGURE OUT *************************************
    I need to know the code to be in the last movie clip I just explained and when I click the close button and it plays everything underneath the "return" label, THEN i need it to access the movie clip with the logo fading in so that it appears to go back to BEFORE clicking on the logo and expanding the view.
    I understand that this code will be places right after the "return" label so that when the return phase plays it will then play the code making it go to this movie clip then it will stop.
    I have tried
    MovieClip(parent.parent).gotoAndPlay("return_2");
    stop();
    And giving the movieclip that has the logo fading in the "return_2" label name. THis allows it to go to that movie clip, however, it doesnt play it is just blank on the screen.
    I also have tried accessing the movie clip after giving it an instance name, but it was doing the same thing.
    Help PLEASE!

    I actually tried a post earlier that was simplified, but I think the setup of scenes might be important....anyways, here it is.
    Setup:
    Scene 1 > MovieClip1 > MovieClip2 > MovieClip3 > MovieClip4
    Explanation:
    I am in MovieClip4, in which I have a "Close_btn" that when clicked, it takes you to label "return" (still inside MovieClip4), which then plays the movie clips in the layers below label "return." What I want it to do is....Once label "return" plays, I need the code to make it go into "MovieClip2" and play a movie clip with the "Instance" Name of "Logo_1."
    I have tried this by setting a label name above the movie clip and referencing the label, however, it does access that movie clip, but it doesnt play it...It is just blank.
    Hope this is understandable.

  • FLVPlayback help

    Using an FLVPlayback component that is calling an external video. Got it to pause and seek to 0 when I click to different frame and once I click back I got it to play the video normally FINALLY! Problem is a quarter of the way through the second video play it automatically jumps to next frame. Anyone know why? Hope this thread is much more clear and I can get a response. Here is the scrip ---- Please Help.
    --Frame 1--
    import fl.video.*;
    button.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);
    function fl_MouseClickHandler(event:MouseEvent):void
        teaser.pause();
        teaser.seek(0);
        teaser.visible = false;
        gotoAndPlay(2);
    stop();
    --Frame 2---
    button2.addEventListener(MouseEvent.CLICK, btn2Down);
    function btn2Down(event:Event):void
        teaser.visible = true;
        teaser.play();
        gotoAndPlay(1);
    stop();
    *teaser being the FLVPlayback instance name.

    kglad,
    They are added to the stage manually not from script and have instance names. I think they are both on autoplay as well. But I figured out the problem but not understanding why it is a problem. I forgot to mention the testing of the second video flvplayback on frame 2 also has a script that is calling it to go to frame 1 when the video is done. So I'm testing if both will work. That seems to be the problem. Once I remove the VideoEvent script, the play works fine but why and how would I work in the VideoEvent so I can also call an action once the video ends? Here is the full script:
    frame 1
    import fl.video.*;
    button.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);
    function fl_MouseClickHandler(event:MouseEvent):void
        myVid.pause();
        myVid.seek(0);
        myVid.visible = false;
        gotoAndPlay(2);
    stop();
    Frame 2--
    button2.addEventListener (MouseEvent.CLICK, btn2Down);
    function btn2Down(event:Event):void{
         gotoAndPlay(1);
         myVid.visible = true;
         myVid.play();
    mb.addEventListener (VideoEvent.COMPLETE, mbFin);
    function mbFin(event:Event):void{
         gotoAndPlay(1);
    stop();

  • HELP ADOBE AS3! Playing frame twice is not working

    okay so I'm almost done with my website, but i got really stuck on the last part.
    i have a main page that works perfectly wen i just open my site, in it are buttons that takes me to three other minor pages, there are buttons in the minor pages that takes you back to the main page. when i click on these buttons and get i succesfully get to the mainpage, the codes don't work anymore and i cant click on the buttons to go to the minor pages :S!!! WHAT IS THE PROBLEM :'(.. it works in the begining and then it does't this doesnt make sense:
    this is the code i use:
    stop();
    buttons.buttonmotion.addEventListener(MouseEvent.CLICK, klk);
    function klk(event:MouseEvent):void {
    gotoAndPlay("motionreal");
    stop();
    buttons.buttonmodeling.addEventListener(MouseEvent.CLICK, hhh);
    function hhh(event:MouseEvent):void {
    gotoAndPlay("modelingreal");
    stop();
    buttons.buttonprint.addEventListener(MouseEvent.CLICK, kjk);
    function kjk(event:MouseEvent):void {
    gotoAndPlay("printreal");
    stop();
    buttons.buttonweb.addEventListener(MouseEvent.CLICK, lkk);
    function lkk(event:MouseEvent):void {
    gotoAndPlay("webreal1");
    stop();
    buttons.buttonaboutme.addEventListener(MouseEvent.CLICK, sos);
    function sos(event:MouseEvent):void {
    gotoAndPlay("aboutmereal");

    i tried making it go back the the mainpage by frame number and by label, and it actually does but the codes don't work anymore, and the codes are on top of that frame number and label name. i have the mainpage and other pages, all inside a movieclip.. called "masterclip" could that be the problem?
    my buttons are inside two movieclips, could that be the problem?
    im desperate for help ive been trying to finish my website for 3 months now, thats crazy!!!
    thanks for the reply , i hope u can solve me problem

Maybe you are looking for

  • I m not able to create xml file in Java Project

    hi all, I have created one java project just to try with Ant Builder. I have created one class inside it. and now i m creating an XML file inside that project. But as soon as i try to create the File -> New -> File and give the .xml extention of the

  • Error 0x8007F0F4 when trying to install update KB2686509

    Hello: I have tried several times to install the recent security update KB2686509. Each time it fails with error 0x8007F0F4. Fixes that other people have reported online have not worked for me. For example, there is no file on my system called "fault

  • Copy and paste for applets

    I've heard that since applets cannot access the system's clipboard it is impossible to implement and copy and paste features into an applet unless the applet is digitally signed. Are there any other alternatives to signing the applet? Cheaper alterna

  • IOS 8.1 crashed my iPad mini

    I Installed ios 8.1 on my iPad mini, then had trouble with it being really slow and glitchy.  So I powered it off.  When I tried to turn it on again, it just free at the apple logo. I tried to reboot (held the home button and power button), but again

  • Trouble logging and capturing

    in the log and capture window, it says VTR OK at the bottom, but the preview is disabled - I can't see what I want to capture. Please help - urgent situation.