Prepareframe runs _before_ the stage is drawn while enterframe fires off
after the the redraw has completed. If you modify properties of sprites in
an enterFrame, a flash occurs because the sprite has already been drawn and
now it has to be updated again. However if you make the change in a
prepareFrame handler, sprites properties will have already been updated so
there is no flash. I suppose its also faster to use prepareFrame since
there is no second redraw.

You can try it out yourself by placing a sprite on stage and changing its
forecolor value first in an enterFrame and then in a prepareFrame.

Pranav Negandhi
New Media Applications.
Learnet India Limited, Mumbai.
Phone: 91-22-859 8042 Ext: 410



<snip>
Is there a need to use on PrepareFrame? Can't I just use  on EnterFrame?
The first statement distinctly reads:

'the playback head enters a frame'

so the time differerence is actually negligible? Can't changes  be done
directly with the on EnterFrame command?
<snip>





[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to