A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Movie Clip Variable

  1. #1
    Senior Member Flamboyant Flasher's Avatar
    Join Date
    Dec 2001
    Posts
    1,253

    Movie Clip Variable

    can I get help with the correct code to test whether or not a movieclip is open or if it is on a particular frame? I know I need a variable in the clip, but not certain how to set it up...

    Thanks.

  2. #2
    E-Farmer
    Join Date
    Jul 2006
    Location
    Somewhere in the Alps
    Posts
    67
    To test if a movieclip is on a certain frame, you can use: _currentframe

    Code:
    if(_currentframe == 5){
    	//do stuff
    }
    
    //   Or:
    
    if(_currentframe > 4){
    	//do other stuff
    }
    Phrase of contemplation:

    "If you are too open minded your brain will fall out!"

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