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: flashcoders@chattyfig.figleaf.com Sent: Monday, March 12, 2007 8:35 AM Subject: Re: [Flashcoders] Extending buttons interface also you should know that using prototypes is bad

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

RE: [Flashcoders] Extending buttons interface

2007-03-12 Thread Merrill, Jason
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: [Flashcoders] Extending buttons interface and now what are they using? gustavo On Mar

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 Multimedia

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 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 say

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, even if

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

RE: [Flashcoders] Extending buttons interface

2007-03-12 Thread Nick Weekes
@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 the Flash 9 AS3 preview to compile projects - not just test

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

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 preview

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 2 is

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, you make

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