Re: [Flashcoders] parent property woes in AS3

2008-01-06 Thread Fumio Nonaka
You should cast to the class. About casting see the following: Programming ActionScript 3.0 ActionScript language and syntax Data types Type conversions: http://livedocs.adobe.com/flash/9.0/main/0048.html _ Omar Fouad wrote: so if I am inside a movieClip mc i should do:

RE: [Flashcoders] parent property woes in AS3

2008-01-06 Thread Jesse Graupmann
] On Behalf Of Fumio Nonaka Sent: Sunday, January 06, 2008 4:22 AM To: Flash Coders List Subject: Re: [Flashcoders] parent property woes in AS3 You should cast to the class. About casting see the following: Programming ActionScript 3.0 ActionScript language and syntax Data types Type conversions

Re: [Flashcoders] parent property woes in AS3

2008-01-05 Thread Fumio Nonaka
The parent is a property of DisplayObject class, while the play() method is belongs to MovieClip class which is a sub class of DisplayObject. Therefore the reference of the property should be cast to MovieClip class. MovieClip(parent).play(); _ Omar Fouad wrote: In AS3 I am tring to get

Re: [Flashcoders] parent property woes in AS3

2008-01-05 Thread Omar Fouad
so if I am inside a movieClip mc i should do: mc(parent).play(); ??? On Jan 6, 2008 5:45 AM, Fumio Nonaka [EMAIL PROTECTED] wrote: The parent is a property of DisplayObject class, while the play() method is belongs to MovieClip class which is a sub class of DisplayObject. Therefore the