instanceof matches an objects primitive type in as1 and as2.
I believe you can do this by adding a method to the Button.prototype object.
Button.prototype.somefunc = function(){
trace("hi");
}
and from a button instance, you make invoke
buttonInstance.somefunc(); //hi
On 3/9/07, strk <[EMAIL PROTECTED]> wrote:
Is there a way to attach a method to all existing button instances ?
It seems that button instances are NOT instaceof Button ...
At least NOT for SWF6 .
--strk;
_______________________________________________
[email protected]
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
_______________________________________________
[email protected]
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