hello Grégoire,

yes, I also tried with dynamic, but something funny happened. The code
worked when the class is dynamic and the movieclip var is public but it also
worked with the class being a normal, sealed class.

bye,
andrei


On 2/12/07, Grégoire Divaret <[EMAIL PROTECTED]> wrote:

Hi!

I'm not sure but your class need to be dynamic


>From: "Andrei Thomaz" <[EMAIL PROTECTED]>
>Reply-To: Flashcoders mailing list <[email protected]>
>To: "Flashcoders mailing list" <[email protected]>
>Subject: [Flashcoders] as3, movieclips and subclasses of MovieClip
>Date: Sun, 11 Feb 2007 22:33:27 -0200
>
>hello list,
>
>I am studying AS3 with the Flash 9 Alpha, and today I learnt one thing
>about
>MovieClip classes, and I would like to ask if it is documented somewhere;
I
>haven't seen anything about this issue. What I did was:
>
>1) I created a movieclip, and associated it with a class, that extends
>MovieClip. And I put another movieclip inside this one, with the instance
>name of m_mcTest, and declared it as a property of the class of its
parent.
>Something like:
>
>class MyMovieClip extends MovieClip
>{
>    private var m_mcTest:MovieClip;
>}
>
>2) Testing the movie a few times, I perceived I had to declare the var
>m_mcTest as public, because I was getting this error:
>
>Error #1056: Cannot create property m_mcTest on MyMovieClip
>    at flash.display::Sprite/flash.display:Sprite::constructChildren()
>
>
>I cann't remember about having this kind of problem with AS 2, and I am
>curious about if there is some docs about that.
>
>
>thank you,
>andrei
>_______________________________________________
>[email protected]
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>Brought to you by Fig Leaf Software
>Premier Authorized Adobe Consulting and Training
>http://www.figleaf.com
>http://training.figleaf.com

_________________________________________________________________
Découvrez le Blog heroic Fantaisy d'Eragon!
http://eragon-heroic-fantasy.spaces.live.com/

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to