this.onEnterFrame=undefined or delete this.onEnterFrame 2004-03-14 - By Morten Barklund
Back > I just wrote a script that removes an onEnterFrame action, and I set it to > nothing, with > nothing = function() {} > > Arguably this wastes space, but semantically it's what you want: on every > frame, you do nothing.
On every frame you actually see a function and run it.
It doesn't do anything, but you run it.
Why?
The semantics are not the same as if there were function at all, but the result is - though with extra resources spent!
// Morten Barklund // DKMMUG Manager
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Supported by Fig Leaf Software =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Be sure to check the archives and the wiki: http://chattyfig.figleaf.com/ =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:106892 =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe send a blank e-mail to: Normal Mode: flashcoders-unsubscribe@(protected) Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|