A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: what frame are you in?

  1. #1
    Senior Member
    Join Date
    Mar 2001
    Posts
    197
    I was wondering how you write code to ask what frame an MC is in.
    --------
    movie = instance name of MC

    if(_root.movie/*are you in frame1?*/){

    }
    --------
    Any help is always appreciated, thanks
    jahü

  2. #2
    ActionScript.org
    Join Date
    Aug 2000
    Posts
    1,030
    Code:
    movie = "someName";
    curFrame = _root[movie]._currentFrame;
    if (curFrame == 2) {
        // in frame 2
        trace ("frame 2");
    }

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