, 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
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
: 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
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
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
___
).
/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
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
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
-
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
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
-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
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
: [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
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 :)
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...
15 matches
Mail list logo