A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [RESOLVED] Is there a way to check if a moviclip has reached a certain frame

  1. #1

    resolved [RESOLVED] Is there a way to check if a moviclip has reached a certain frame

    This is my first time posting here and i'm a beginner in flash

    I made a death animation for an enemy in a game I'm making and the idea is that once the animation is done, flash will unload the movieclip using the unloadMovie function.

    Is there a function that would check what frame the movieclip is on so I can despawn the enemy using an if/then statement?

  2. #2
    Senior Member
    Join Date
    Feb 2005
    Posts
    1,824
    https://stackoverflow.com/questions/...f-dynamic-clip this is what you're looking for. Also, why are you using as2? as3 provides better performance.
    .

  3. #3
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,218
    PHP Code:
    if(enemy._currentframe==5){
    trace("remove enemy movieclip");

    z to the lib

  4. #4
    Quote Originally Posted by swak View Post
    https://stackoverflow.com/questions/...f-dynamic-clip this is what you're looking for. Also, why are you using as2? as3 provides better performance.
    Because I'm using flash 8. Besides, It's not 2007 anymore so I doubt anyone would notice

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