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/00000048.html
_____
Omar Fouad wrote:
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 reference of the property should be cast to MovieClip class.

MovieClip(parent).play();
--
Fumio Nonaka
mailto:[EMAIL PROTECTED]
http://www.FumioNonaka.com/
My books<http://www.FumioNonaka.com/Books/index.html>
Flash community<http://F-site.org/>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to