0 Replies Latest reply on Jul 7, 2006 6:57 AM by jelaplan

    Pushing Frame Scripts for Animation into Classes

    jelaplan
      I would like to move some scripts that are on frames of an animation to a class. I'm wondering if there are some best practices for this. The animation that I have includes scripts on individual frames. These include the common stop, gotoAndPlay etc. These scripts execute as the animation runs. I'm not sure how I can do the same in a class. Maybe the best thing to do is to use onEnterFrame and check for frame numbers using a conditional. Seems sort of awkward. I don't know of any ready way to make a event listener for a frame event. That would seem ideal.