Advertisement

03.07.2008 at 03:58AM PST, ID: 23222601 | Points: 500
[x]
Attachment Details

updting an input field on the stage with a class

Asked by roscoeh23 in Macromedia Flash

Tags:

I have the following class and I need to update my input text (Name_txt) from my class. Can anyone help?

Name_txt.text="hello"; this procuces the error because Name_txt is not defined in my class?


package {
import flash.display.*;
import flash.events.*;
import fl.transitions.*;
import flash.display.MovieClip;



public class qwertyKeyboard extends MovieClip

{



// constructor

public function qwertyKeyboard()
{

this.addEventListener(MouseEvent.MOUSE_DOWN, addLetter);


}


public function addLetter(event:MouseEvent):void {


this.play();
trace(event.target.name.substr(0,1));
Name_txt.text="hello";
Name_txt.border =true;

//var str:String = "Hello from Paris, Texas!!!";
//trace(str.substr(11,15)); // output: Paris, Texas!!!
//trace(str.substring(11,15)); // output: Pari





}

}


}
Start Free Trial
 
Loading Advertisement...
 
[+][-]03.07.2008 at 07:54AM PST, ID: 21071339

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.07.2008 at 08:04AM PST, ID: 21071462

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.07.2008 at 08:07AM PST, ID: 21071492

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.12.2008 at 04:25AM PDT, ID: 21104725

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.12.2008 at 04:43AM PDT, ID: 21104815

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.23.2008 at 05:28PM PDT, ID: 21636977

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-43 / EE_QW_2_20070628