Results 1 to 2 of 2

Thread: Stop mc rewinding

  1. #1
    Join Date
    May 2007
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Stop mc rewinding

    hi, i have an action script question: I am rewinding a movieclip (animation), but the code right now rewinds all the way to the start. I would like the animation to stop IF it gets to a keyframe where a stop command is present. My code is this:

    if (_root.animation._currentframe>1) {
    _root.animation.prevFrame();
    this.gotoAndPlay(2);
    }

    if (_root.animation._currentframe<=1) {
    this.gotoAndStop(1);
    }

    if (_root.animation._currentframe = stop() {
    this.gotoAndStop(1);}

    Where the two first are correct and copy/paste from a homepage. The last is my suggestion to what might be the solution, but as i am a copy/paste programmer, of course it doesn't work!

    if you want to see the flash file, it can be downloaded here: www.kaaresmith.dk/download/test3.fla

    Thank you!

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Nope. You can't search for AS code that way. You will need to use frame labels or get creative with the AS you do use. Since you are an admitted copy and paste-r, I recommend the frame labels.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

Bookmarks

Posting Permissions

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