Actionscript 2.0 element.text always outputs "00"
Posted
by Mbarry
on Stack Overflow
See other posts from Stack Overflow
or by Mbarry
Published on 2010-03-11T11:27:12Z
Indexed on
2010/03/12
17:47 UTC
Read the original article
Hit count: 161
Hi everybody, I'm fighting against a strange behaviour with my actionscript! After setting the four integer variables from the MovieTimer sprite (hour, minute, second, mili-sec) and concate them i got always double zero: 00
stop ();
delete this.onEnterFrame;
var str1;
var str2;
var mili;
var second;
var minute;
var hour;
var timer;
mili = _root.MovieTimer.txt_mili.text;
second = _root.MovieTimer.txt_sec.text;
minute = _root.MovieTimer.txt_min.text;
hour = _root.MovieTimer.txt_heures.text;
timer = hour+' : '+minute+' : '+second+' : '+mili;
_root.MovieSpellFinish.TextTime.text = timer;
_root.MovieSpellFinish.TextTime.text outputs: 00
is there any solutions for this??
© Stack Overflow or respective owner