Re: [Flashcoders] Getting the class name?

2006-05-26 Thread David Skoglund
, 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 :) i think it's more

Re: [Flashcoders] Getting the class name?

2006-05-26 Thread John Grden
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 :) i think it's

Re: [Flashcoders] Getting the class name?

2006-05-26 Thread John Grden
: Thursday, May 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

[Flashcoders] Getting the class name?

2006-05-25 Thread David Skoglund
Hi, I' trying to get the class name of a class in order to serialize a scene. Since I donĀ“'t have a traditional programming background I have a hard time searching for this since I really don't know the vocabulary. In this code I'd like the trace function to output MyClass: class MyClass

RE: [Flashcoders] Getting the class name?

2006-05-25 Thread Merrill, Jason
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 ___

Re: [Flashcoders] Getting the class name?

2006-05-25 Thread David Skoglund
). /David - Original Message - From: Merrill, Jason [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, May 25, 2006 2:56 PM Subject: RE: [Flashcoders] Getting the class name? Given: class MyClass extends MovieClip { function MyClass

RE: [Flashcoders] Getting the class name?

2006-05-25 Thread Merrill, Jason
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, but does the object know what class it is constucted from at runtime? I want to save out scene objects

Re: [Flashcoders] Getting the class name?

2006-05-25 Thread mike cann
PROTECTED] [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, but does the object know what class

Re: [Flashcoders] Getting the class name?

2006-05-25 Thread mike cann
- From: [EMAIL PROTECTED] [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, but does

Re: [Flashcoders] Getting the class name?

2006-05-25 Thread Arul Prasad
Subject: Re: [Flashcoders] Getting the class name? Yes, i know that the class name is MyClass when writing the code, but does the object know what class it is constucted from at runtime? I want to save out scene objects to a XML-file and need to save what class

Re: [Flashcoders] Getting the class name?

2006-05-25 Thread eka
-Original Message- From: [EMAIL PROTECTED] [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

Re: [Flashcoders] Getting the class name?

2006-05-25 Thread eka
To: Flashcoders mailing list Subject: Re: [Flashcoders] Getting the class name? Yes, i know that the class name is MyClass when writing the code, but does the object know what class it is constucted from at runtime? I want to save out scene objects to a XML-file

Re: [Flashcoders] Getting the class name?

2006-05-25 Thread mike cann
: [Flashcoders] Getting the class name? Given: class MyClass extends MovieClip { function MyClass (){ trace (this.className) } The name of the class is MyClass - or do you mean the instance name

Re: [Flashcoders] Getting the class name?

2006-05-25 Thread Ian Thomas
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 :)

Re: [Flashcoders] Getting the class name?

2006-05-25 Thread eka
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...