> ?

hmmm, we all seem to be speaking in short half sentences, or punctuation.

The prototype property is fully accessible in AS2, and because of general
shortcommings in Flash.

(MovieClips, for example, are a cross-breed of the common prototype-based
class and a sprite of magic underscored properties carried over from the ver
beginnings of Flash)

Macromedia uses the prototype for their vs 2 components' DepthManager class:

function DepthManager()
{
    MovieClip.prototype.createClassChildAtDepth = createClassChildAtDepth;
    MovieClip.prototype.createChildAtDepth = createChildAtDepth;
    ...
    _global.ASSetPropFlags(MovieClip.prototype,
"createClassChildAtDepth",1);
    _global.ASSetPropFlags(MovieClip.prototype, "createChildAtDepth",1);
    ...

I suggest using it sparingly.  Make sure adding it to the prototype is the
only thing that makes sense.  This because it's always hard to track down
bugs added to the prototype when they could have been added from anywhere.

Tyler
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to