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
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
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.
>
>
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
>>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
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
_
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
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
>>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
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
[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
>>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
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
>>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
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
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
>>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
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
18 matches
Mail list logo