PDA

View Full Version : getting input box to work


dazpearce
03-27-2003, 02:03 PM
my file is here:
http://www.aurora-watch.com/clock.fla

i can get the clock working ok, but if u test it you will see that i cannot properly input the year in my input box, any ideas?

toke
03-27-2003, 03:21 PM
why do you need to duplicate frame1 in frame2?

if i'm not wrong :p they are the same. i delete whatever on the second frame and that should solve your problem.

btw: nice job man! :)

dazpearce
03-27-2003, 04:41 PM
because the clock needs a gotoandplay 1 on frame 2 for it to work

toke
03-27-2003, 05:40 PM
alright.. my bad. :)

the problem might come from using Selection.setFocus();

check this maybe it can help solving the setFocus issue

http://www.actionscript.org/forums/showthread.php3?s=&threadid=14792

dazpearce
03-27-2003, 05:56 PM
not really, but thanks for the suggestion.

toke
03-27-2003, 05:59 PM
or.. if you don't mind having the text box blink, you can disable the selection.setFocus().

or if you wanna keep it (won't blink the first time though, users have to click on the field first), try selection.setFocus(yearsth.lenght);

dazpearce
03-27-2003, 06:07 PM
if i try commenting it out or using Selection.setFocus(yearText.length); i cant input anything in at all, is it different for you?

toke
03-27-2003, 06:25 PM
yes.. i guess it because i removes all the keyframes from the second frame. only leave one in action layer though so the clock can work properly.

dazpearce
03-27-2003, 06:38 PM
aaah i see, thanks very much, youve been a great help

toke
03-27-2003, 07:06 PM
great! :D