[Flashcoders] Re: AS2: blank input text field when clicked

2010-02-15 Thread Alan Neilsen
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



This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: AS2: blank input text field when clicked

2010-02-15 Thread Glen Pike

Yay!  Glad to have helped :)

Alan Neilsen wrote:

Thanks to Glen Pike. The solution ended up being very simple

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


Re: [Flashcoders] Re: AS2: blank input text field when clicked

2010-02-15 Thread Muzak

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