On Fri, Mar 09, 2007 at 11:16:46AM -0500, elibol wrote:
> 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
It works with SWF7, but not in SWF6, where ! myButton instanceof Button.
--strk;
> 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