PDA

View Full Version : Buttons that change text


ryan@eventstrea
02-07-2005, 06:43 PM
HI,
I am such a newb, but Ive looked all over the site and I can't find what I'm looking for.

I need to make a button's on (click) state change the .text property of a TextArea component.

Any Suggestions on how I can accomplish this?

THANKS!
Ryan Gordon

Xeef
02-07-2005, 07:21 PM
hi and welcome to As.Org

(on the stage)

My_botton.onPress = function() {
My_textArea.text = "hallo";
};


or (on the button)

on (click) {
_root.My_textArea.text = "Halllo";
}

ryan@eventstrea
02-07-2005, 07:29 PM
Thank You Thank You Thank You!!!!!