Hello,

 

I basically have the follow:

 

Function DrawMyStuffOnScreen():void{

                Var myMovieClip:MovieClip = new DefinedMovieClip();

                Var myButton:SimpleButton = new DefinedButton();

                myButton.addEventListener(MouseEvent.CLICK,DoSomething);

//Defined Movie clip has several input fields in it

                myMovieClip.TextField.text = "SomeText";

                addChild(myMovieClip);

}

Function DoSomething(MouseEvent.CLICK):void{

                What goes in this function to be able to do something like

                Trace(myMovieClip.TextField.text); // This show a complier
error of basically I don't know what myMovieClip is;

 

                Then tried:

                Var myMC = new DefinedMovieClip();

                Trace(myMC.TextField.text) // this works but is always empty
since it initializes empty. 

                So how do you access the textfield that is sitting on the
stage???

}

Thanks

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to