It's a method of the package.
When you create an AS 3 class you can put methods inside the package {}
block, but outside any class definitions.
I'm not sure why it works that way, but that's the way it works.
Spike
On 10/31/05, Martin Wood [EMAIL PROTECTED] wrote:
i think its just a function
]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Monday, October 31, 2005 1:18 PM
Subject: Re: [Flashcoders] Bizare...AS3.0 packages have methods?
i think its just a function declared with package scope.
Mark Lapasa wrote:
flash.util.trace()
Is that a method of a package
, 2005 8:49 PM
Subject: Re: [Flashcoders] Bizare...AS3.0 packages have methods?
It's a method of the package.
When you create an AS 3 class you can put methods inside the package {}
block, but outside any class definitions.
I'm not sure why it works that way, but that's the way it works
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Bizare...AS3.0 packages have methods?
Well that's one thing I always wanted to do in AS2 so if it stays like this
it'd be great.
There are many functions that just perfectly without class in front of them
(after you import the package).
For example
The reason why all of this is of any concern to me is that I am attempting
to write solid AS2.0 today that has the potential to be migrated to AS3.0
tommorow. The reason why I havn't gone head first into AS3.0 is that my
present target audience is Flash Player 7.
Easy to migrate (for the
5 matches
Mail list logo