A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Completely Stop at a Specific Frame

  1. #1
    Junior Member
    Join Date
    Jul 2010
    Posts
    3

    Completely Stop at a Specific Frame

    Hello there,

    I am very new to Flash and I am making a little 30 second clip just to fool around with Flash.

    Now at the end of my film I just want everything to stop (if possible, once a specific frame is hit move to another frame.)

    I've heard that you could use ActionScript to perform this but I really have no clue

    If you guys can help me that'll be great :-)

  2. #2
    Senior Member
    Join Date
    May 2000
    Location
    Bombay, India
    Posts
    926
    just put this as a frame action

    Code:
    stop();
    You can place the code on any frame....

    hope that helps
    RanTen
    Unrepentant Rebel & Boat Rocker
    http://ranten.celltrix.com

  3. #3
    Junior Member
    Join Date
    Jul 2010
    Posts
    3
    Yes I have tried clicking on the frame and then hitting F9 and putting that in, but it stops at the beginning.

    Here is what I have been working on just incase you would like to see:
    http://megaswf.com/serve/29384/

  4. #4
    Senior Member
    Join Date
    May 2000
    Location
    Bombay, India
    Posts
    926
    Hi Wootbeer,

    Thats because you have entered the code into key frame 1.

    Just highlight a frame, say frame 10, in your timeline.
    Now hit F7, so that particular frame becomes a keyframe.
    Now with that keyframe selected, open the ActionsPanel, and enter the code for that frame.

    Hope that helps
    RanTen
    Unrepentant Rebel & Boat Rocker
    http://ranten.celltrix.com

  5. #5
    Junior Member
    Join Date
    Jul 2010
    Posts
    3
    Thank you! Here is my current result:

    http://megaswf.com/serve/30183/

    But I have one more question: I currently have the "gotoAndStop(1000);" command on frame 1. Is it possible to do that command once the flash file is opened before frame 1 (if you understand what I'm saying) like "on open go to frame 1000".

    Thanks.

  6. #6
    Senior Member
    Join Date
    May 2000
    Location
    Bombay, India
    Posts
    926
    Hi Wootbeer...

    If you place the action:
    "gotoAndStop(1000);"
    on the first frame, and you have say 1500 frames after that....that's exactly what the swf will do.
    RanTen
    Unrepentant Rebel & Boat Rocker
    http://ranten.celltrix.com

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