'this' refers to the button. Try targeting the text field with _root,
_parent or if it's in a movie clip then the movie clip's name.

Ade

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of CARABUS
mobile+
Sent: 05 December 2005 07:58
To: Flashcoders mailing list
Subject: [Flashcoders] Function


I done this action :

There is a dynamic textfield (var2), a button (erase_btn)

I want to erase a text, with the onPress action, it doesn¹t

erase_btn.onPress = function() {
    this.var2.text = "";
};

And it doesnt work, have U got an idea ?



_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to