textinput - actionscript 2.0 inputtext value -


i have little project in flash , new action script. using actionscript 2.0 , want make alarm app can ring sound when time comes :p.

so have 2 inputtext's 1 called alarm_hour , alarm_min.

so user enters hour , minute when wants alarm ring. using date class pick hour , minute , checkalarm function looks this:

var my_date:date = new date(); var h:number = my_date.gethours(); var m:number = my_date.getminutes();  var mi:string = alarma_minute; var ora:string = alarma_hour;  if (((ora == h) && (mi == m))){      _root.sunet.start(0, 99);     _root.stare = 'start'; } 

sunet sound file.. problem if statement never activates don't know why because have made dinamic text , tested values ora , hour , mi , m , equals... doing wrong?

thank you!

i have managed solve problem accessing inputtext variables in form: "variablename.text" , i've had change inputtext instance name "variablename" , works fine :d


Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

c# - how to write client side events functions for the combobox items -

ssh client with paramiko (python) -