Displaying Value of flash input fields from within a MovieClip

Hi all,

I have a MoveClip within flash which has input text fields for my user to change his controls and i know if i want to text input fields from a movie clip i’d have to call my movie Clip like this ccontrols.cleft.text but it seems to be not working if i do a trace to get the actual value how can get that what is it that i am doing exactly wrong when i click my on submit button using addeventListener?

So how can i do that in actionscript there arent many tutorials covering that part so i have no idea ive been looking around and seeing how other pople have done it and ive seen how they done it by doing somthing like the parentmovieClip.textinput name.text to get the value of the text input field from the parent movie Clip is that correct how i do that? or is there another way of me doing it in actionscript 3 in flash thanks?

i remember going into the movieClip itself and manually creating the text input boxes the actual name of the MovieClip is Control and ive manually created the input boxes within the MovieClip myself as for the


trace("b4 change controls gets called");
					var myInstance:MovieClip = new control();
					addChild(myInstance);
					addChild(sc);
					sc.y = "139.25";
					sc.x = "295.50";
					//_root.myInstance.cleft
					//myInstance.cleft.text;
					trace(myInstance.cleft.text);
					trace("before the save submit button");
					sc.addEventListener(MouseEvent.CLICK,check);
//					trace("Test");
					stop();

public function check(evt:MouseEvent):void
		{
			var myInstance:MovieClip = new control();
			trace("the left control is now"+myInstance.cleft.text);

		}


the top one is for the actual displaying of the movie clip and postioning of the button and the 2nd function is the one for the actual when the user clicks the button it displays the trace command.

So What can i do to get the value being passed from myinstance to the check function?

Can anyone help?

Thanks,William

Hi all,

I have a couple of Text input fields sitting inside a MovieClip and i am wanting to know how do i go about accessing them from outside the MovieClip and obtaining the value of each input text field?

the movieclip is called myinstance the movieclip code is in a value like this public var myinstance:MovieClip = new Ccontrol();

that is for the MovieClip the actual

public var sc:SimpleButton = new cset();addChild(sc);
					sc.y = "139.25";
					sc.x = "295.50";

					trace("before the save submit button");
					sc.addEventListener(MouseEvent.CLICK,check);

The Check function is this


public function check(evt:MouseEvent):void
		{
			var myArray:Array = new Array();
			var myInstance:MovieClip = new ccontrol();
			//trace(myInstance.cleft.text);
			trace("the left control is now"+myInstance.cleft.text);
			//
			saveData.save();
			//
		}

When i do that i get the message the left control is now

when it shud be the left control is A or what ever the user entered in the input field b4 they click on the button savedcontrols.

How can i fix this issue can anyone Help Please?

Thanks,William

When you declare myInstance as a new object, should is be a ccontrol with two cs?