e property for this
> project, but ekas system seems interesting for future projects.
>
> /David
>
> - Original Message -
> From: "Ian Thomas" <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list" < flashcoders@chattyfig.figleaf.com>
> Sent: Th
but ekas system seems interesting for future projects.
/David
- Original Message -
From: "Ian Thomas" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list"
Sent: Thursday, May 25, 2006 9:50 PM
Subject: Re: [Flashcoders] Getting the class name?
Having googled to find you
ay 25, 2006 9:50 PM
Subject: Re: [Flashcoders] Getting the class name?
Having googled to find your code - that's a really nice way of doing
it. Well done!
(Does anyone know if AS3 has a better reflection system than AS2..?)
Ian
On 5/25/06, eka <[EMAIL PROTECTED]> wrote:
Hello
better yes :)
search in AS3 reference :
http://livedocs.macromedia.com/labs/1/flex20beta3/langref/index.html
in package flash.utils, the methods : getQualifiedClassName(o) ,
getQualifiedSuperclassName and describeType(o):XML
describeType method returns a XML object ... I'm not a XML's FAN... b
Having googled to find your code - that's a really nice way of doing
it. Well done!
(Does anyone know if AS3 has a better reflection system than AS2..?)
Ian
On 5/25/06, eka <[EMAIL PROTECTED]> wrote:
Hello :)
i think it's more easy to use my class :)
_
> > > > > >
> > > > > > class MyClass extends MovieClip{
> > > > > > public var type:String = "MyClass"
> > > > > > }
> > > > > >
> > > > > > class MyOtherClass extends Movie
;
> > > > > class MyOtherClass extends MovieClip{
> > > > > public var type:String = "MyOtherClass"
> > > > > }
> > > > >
> > > > > In Flash:
> > > > >
> > > > > var a:MyClass =
> > > class MyOtherClass extends MovieClip{
> > > > public var type:String = "MyOtherClass"
> > > > }
> > > >
> > > > In Flash:
> > > >
> > > > var a:MyClass = new MyClass();
> > > > var b:MyCla
AIL PROTECTED]
> > > > >>[mailto:[EMAIL PROTECTED] On Behalf
> > > > >>Of David Skoglund
> > > > >>Sent: Thursday, May 25, 2006 9:17 AM
> > > > >>To: Flashcoders mailing list
> > > > >>Subject: Re: [Fl
e)
> > > trace(b.type)
> > >
> > > Name usually refers to the instance name.
> > >
> > > Jason Merrill
> > > Bank of America
> > > Learning Technology Solutions
> > >
> > >
> > >
> > >
> > >
&g
> >
> >
> >
> >
> >
> >
> >
> >
> > >>-Original Message-
> > >>From: [EMAIL PROTECTED]
> > >>[mailto:[EMAIL PROTECTED] On Behalf
> > >>Of David Skoglund
> > >>Sent: Thursday, May 25, 2006 9
me usually refers to the instance name.
>
> Jason Merrill
> Bank of America
> Learning Technology Solutions
>
>
>
>
>
>
>
>
> >>-Original Message-
> >>From: [EMAIL PROTECTED]
> >>[mailto:[EMAIL PROTECTED] On Behalf
> >>Of David Sk
save out scene objects to a XML-file and need to
>>save what class the objects are constructed from (or their
>>linkage ID in set in the Flash IDE).
>>
>>/David
>>
>>
>>- Original Message -----
>>From: "Merrill, Jason" <[EMAIL PROTECT
gt;[mailto:[EMAIL PROTECTED] On Behalf
>>Of David Skoglund
>>Sent: Thursday, May 25, 2006 9:17 AM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] Getting the class name?
>>
>>Yes, i know that the class name is MyClass when writing the
>>code,
).
/David
- Original Message -
From: "Merrill, Jason" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list"
Sent: Thursday, May 25, 2006 2:56 PM
Subject: RE: [Flashcoders] Getting the class name?
Given:
class MyClass extends MovieClip {
function MyClass (){
Given:
>>class MyClass extends MovieClip {
>>
>> function MyClass (){
>> trace (this.className)
>> }
The name of the class is "MyClass" - or do you mean the instance name?
Jason Merrill
Bank of America
Learning Technology Solutions
___
16 matches
Mail list logo