You don't need the extra private var. You can do something like this:
public class A extends MovieClip
{
//onthestage_mc is a movieclip manually put in the .fla
private var onthestage_mc:MovieClip;
public function A ():void
{
}
}
James O'Reilly — Consultant
Adobe Certified Flash Expert
http://www.jamesor.com
Design • Code • Train
Martin Tremblay wrote:
Hello group !
Just trying to find the best way to link a movieclip manually put on the
stage to a class member.
Right now this is what I'm doing.
public class A extends MovieClip
{
private var m_mcOnTheStage:MovieClip;
public function A ():void
{
//onthestage_mc is a movieclip manually put in the .fla
m_mcOnTheStage = onthestage_mc;
}
}
Is there a better way?
Martin Tremblay
LVL Studio
_______________________________________________
[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