I like this idea... I can see an easier way to do this, but I'll reply once I've tested it to make sure it works.
Thanks, Lee -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Fanetti Sent: 23 March 2006 17:07 To: Flashcoders mailing list Subject: Re: [Flashcoders] Movie Speed I have been playing with Flex 2 a lot recently, so I forgot a lot of the AS2 syntax for this, but this is pseudocode for what I would do. What I would do is initialize the MovieClip as an event broadcaster: AsBroadcaster.initialize(MovieClip); then add a broadcaster to the MovieClip prototype MovieClip.prototype.broadcastEnterFrame = function(){ this.broadcastMessage("enterFrameEvent") } then in the root create a movieClip that will be your central animation broadcaster _root.createEmptyMovieClip("broadcaster_mc",999999); then create a setInterval to iteratively call the broadcaster speedInterval = setInterval(broadcast_mc,"broadcastEnterFrame",33); then to get anything to animate, you simple add it as an event listener to the MovieClip prototype - and have the animation code in an "enterFrameEvent" function. To change the global playback rate, you set 33 to some other number ( in milliseconds ) my_mc.enterFrameEvent = function(){ this._x += 3 if(this._x >10)MovieClip.removeListener(this) } MovieClip.addListener(my_mc); _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com