A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: check if MC stopped playing

  1. #1
    Junior Member
    Join Date
    Jul 2011
    Posts
    5

    check if MC stopped playing

    is there a way to check if a MC stopped playing?

    i have a MC on my stage and I guess I have to put some event on the last frame inside the MC. now I want that code to jump to frame X of the MAIN stage- not the MC itself. how do i do this?

  2. #2
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    on last frame:

    Actionscript Code:
    _root.gotoAndPlay(2);
    I am back, guys ... and finally 18 :P

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

  3. #3
    Junior Member
    Join Date
    Jul 2011
    Posts
    5
    Quote Originally Posted by Nig 13 View Post
    on last frame:

    Actionscript Code:
    _root.gotoAndPlay(2);
    thanks a lot man. ive to admit i already figured that one out after i had posted this thread like i remembered it was something with root but didnt know the exact way how to spell it. so i just didnt delete the thread and wanted to see if someone gives me another option but this is exactly the thing ive coded so thanks a lot for this man

  4. #4
    Member
    Join Date
    Jul 2011
    Posts
    51
    1st Frame TimeLine Code:

    Actionscript Code:
    stop();
    mc.stop();
    mc.onRelease=function(){
        this.play();
    }
    mc.onEnterFrame = enterFrameListener;
    function enterFrameListener() {
        if (this._currentFrame == this._totalFrames) {
            this.gotoAndStop(1);
            gotoAndStop(2);
            delete mc.onEnterFrame;
        }
    }



    FFA

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