A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Stop animation looping.

  1. #1
    Junior Member
    Join Date
    Feb 2007
    Posts
    1

    Stop animation looping.

    Hi all!
    When i push a button, i want my animation to stop looping when it has played 1 time. Then skip to scene 2 (wich will contain the last image of that animation) then from there pressing a button to go back or play another animation. But that would be easy if my animation just stops looping. I think i have unchecked every loop option, This is what i have now and this is my code for scene 1:
    //stops the playhead at Frame 1
    stop();

    //this script takes the user to scene 2 (zoom in on closset) when zoominclosset_btn is released
    zoom1btn.onRelease = function (){
    gotoAndstop ("Scene 2", 1);
    unloadMovie ("zoomclosset_in");
    };

    //function plays zoomclosset_in when zoom1btn instance is released.
    zoom1btn.onRelease = function(){
    _root.attachMovie("zoomclosset_in", "zoomclosset_in", 1);
    };
    Scene 2 is empty so the problem shouls lie here i think. So i just want to play that zoomclosset_in animation and after that go to a new scene when a button is pressed.

    I hope someone can help me out. thnx!

  2. #2
    Junior Member
    Join Date
    Nov 2007
    Posts
    17
    I'm responding to reopen this discussion. I need to know this, too...

    In CS3.

  3. #3
    Junior Member
    Join Date
    Oct 2007
    Posts
    20
    on the actions timeline add a new keyframe at the end of the animation with stop(); in the actionscript window?

  4. #4
    Junior Member
    Join Date
    Nov 2007
    Posts
    17
    my problem is there is no timeline. I am loading an FLV file externally into a movie clip container.
    Let me set the stage:

    I have a slideshow. At the bottom of the stage is a scrolling array of thumbnails. When you click on one, the larger image (which is loaded externally) appears suddenly in a container in the black vacuum of the center of the stage.

    This is where I am at now. It looks cool and kicks butt.

    I need to have captions for each clip (as per instructions), and I want them to appear to the left of each image, vertically oriented. Then I had an idea:

    Make an animation of a screw covering the text at the beginning and winding down to the bottom to reveal the text. I made the animation with Maya, which sucks compared to MAX, and made it into an FLV file.

    Each time you click a thumbnail, the image loads AND I WANT the screw animation to play in a new container I made over the text (don't worry about the revealing-text part, yet. I was able to do this.

    BUT IT WON"T STOP LOOPING.

    Any help?

  5. #5
    Junior Member
    Join Date
    Nov 2007
    Posts
    17
    here are the [modified] files if you are willing to figure it out for me.
    Attached Files Attached Files

  6. #6
    Junior Member
    Join Date
    Oct 2007
    Posts
    20
    im not that smart unfortunatly

  7. #7
    Junior Member
    Join Date
    Nov 2007
    Posts
    17
    That's okay, but someone must be...

    I created a related thread in the Actionscript section.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center