if you're still in the AS2 universe, look up mx.utils.Delegate.
----- Original Message -----
From: "Alan Neilsen" <aneil...@gotafe.vic.edu.au>
To: <flashcoders@chattyfig.figleaf.com>
Sent: Monday, February 15, 2010 11:00 PM
Subject: [Flashcoders] Re: AS2: blank input text field when clicked
Thanks to Glen Pike. The solution ended up being very simple. I blanked the text in the input field using enterPage.onSetFocus as
below, then added Selection.setFocus(null); to all other controls on that screen so the text field always gets its focus set when
clicked.
enterPage.onSetFocus = function() {
enterPage.text = "";
go_btn._visible=true;
};
go_btn.onRelease = function() {
Selection.setFocus(null);
if (enterPage.text != "") {
if (enterPage.text<=19) {
whichPage = int(enterPage.text);
holder_uh.myPageFlipperuh.gotoPage(whichPage);
go_btn._visible=false;
}
}
};
Alan Neilsen
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders