Re: [Flashcoders] Extending buttons interface

2007-03-09 Thread elibol
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

Re: [Flashcoders] Extending buttons interface

2007-03-10 Thread strk
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, y

Re: [Flashcoders] Extending buttons interface

2007-03-12 Thread Janis Radins
also you should know that using prototypes is bad practice better create seperate class for button that needs that extra functionality 2007/3/10, strk <[EMAIL PROTECTED]>: On Fri, Mar 09, 2007 at 11:16:46AM -0500, elibol wrote: > instanceof matches an objects primitive type in as1 and as2. > >

Re: [Flashcoders] Extending buttons interface

2007-03-12 Thread Jason Rayles
Why is using prototypes bad practice? - Original Message - From: "Janis Radins" <[EMAIL PROTECTED]> To: Sent: Monday, March 12, 2007 8:35 AM Subject: Re: [Flashcoders] Extending buttons interface also you should know that using prototypes is bad practice better

RE: [Flashcoders] Extending buttons interface

2007-03-12 Thread Merrill, Jason
>>Why is using prototypes bad practice? Prototype has been depreciated. Jason Merrill Bank of America Global Technology & Operations Learning & Leadership Development eTools & Multimedia Team ___ Flashcoders@chattyfig.figleaf.com To change your

Re: [Flashcoders] Extending buttons interface

2007-03-12 Thread Gustavo Duenas
and now what are they using? gustavo On Mar 12, 2007, at 12:08 PM, Merrill, Jason wrote: Why is using prototypes bad practice? Prototype has been depreciated. Jason Merrill Bank of America Global Technology & Operations Learning & Leadership Development eTools & Multimedia Team _

Re: [Flashcoders] Extending buttons interface

2007-03-12 Thread Jason Rayles
Prototype has been depreciated. What are you talking about? This is straight from AS 2.0 Language Reference: prototype (Object.prototype property) public static prototype : Object A reference to the superclass of a class or function object. The prototype property is automatically created and a

RE: [Flashcoders] Extending buttons interface

2007-03-12 Thread Merrill, Jason
evelopment eTools & Multimedia Team >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf >>Of Gustavo Duenas >>Sent: Monday, March 12, 2007 12:19 PM >>To: flashcoders@chattyfig.figleaf.com >>Subject: Re: [Flas

RE: [Flashcoders] Extending buttons interface

2007-03-12 Thread Merrill, Jason
>>What are you talking about? This is straight from AS 2.0 >>Language Reference: News Flash - the current version of Actionscript is 3.0, not 2.0. :) Also, see my follow-up e-mail. Jason Merrill Bank of America Global Technology & Operations Learning & Leadership Development eTools & Multime

Re: [Flashcoders] Extending buttons interface

2007-03-12 Thread Jason Rayles
Eeermmm.. the question was about flash 6, and someone said that using prototype is bad practice. 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

RE: [Flashcoders] Extending buttons interface

2007-03-12 Thread Nick Weekes
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: 12 March 2007 16:34 To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Extending buttons interface Inheritance. Well, I guess prototype may not exactly depreciated per se, but inheritance is prefered - prototype is

RE: [Flashcoders] Extending buttons interface

2007-03-12 Thread Merrill, Jason
>>Eeermmm.. the question was about flash 6, and someone said >>that using prototype is bad practice. I was responding to the blanket statement about prototypes - I didn't know the thread was still focusing on Flash 6... even still, I have never found much value in using prototypes - I wouldn't s

Re: [Flashcoders] Extending buttons interface

2007-03-12 Thread T. Michael Keesey
On 3/12/07, Merrill, Jason <[EMAIL PROTECTED]> wrote: >>What are you talking about? This is straight from AS 2.0 >>Language Reference: News Flash - the current version of Actionscript is 3.0, not 2.0. :) Depends on whether you're using Flex or Flash. Flash 9 hasn't been released, after all, ev

RE: [Flashcoders] Extending buttons interface

2007-03-12 Thread Merrill, Jason
>>Depends on whether you're using Flex or Flash. Flash 9 hasn't >>been released, after all, even if the player and Flex Builder 2 have. No it doesn't, any owner of Flash 8 can use the Flash 9 AS3 preview to compile projects - not just test projects, real projects which are legal, and target the F

RE: [Flashcoders] Extending buttons interface

2007-03-12 Thread Nick Weekes
007 17:41 To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Extending buttons interface >>Depends on whether you're using Flex or Flash. Flash 9 hasn't been >>released, after all, even if the player and Flex Builder 2 have. No it doesn't, any owner of Flash 8 can use th

Re: [Flashcoders] Extending buttons interface

2007-03-12 Thread T. Michael Keesey
On 3/12/07, Merrill, Jason <[EMAIL PROTECTED]> wrote: No it doesn't, any owner of Flash 8 can use the Flash 9 AS3 preview to compile projects - not just test projects, real projects which are legal, and target the Flash 9 player. You're right in that Flash 9 has not been released yet, but the F

RE: [Flashcoders] Extending buttons interface

2007-03-12 Thread Merrill, Jason
>>I disagree. 'Current' infers 'final release', not preview beta's. >> >>For me (and many of my peers) Current AS version is 2 for Flash. Well, I still disagree. You're talking about the authoring tool, not the language, which is what I thought we were talking about. There is no "beta" or "pr

Re: [Flashcoders] Extending buttons interface

2007-03-12 Thread T. Michael Keesey
On 3/12/07, Merrill, Jason <[EMAIL PROTECTED]> wrote: Well, I still disagree. You're talking about the authoring tool, not the language, which is what I thought we were talking about. There is no "beta" or "preview" AS3 - only Flash 9 beta/preview which allows you create projects in AS3. Flex