bo0
02-25-2009, 10:10 AM
Hi all,
I bought a flash game and want to change the display to 2 decimal place but i do not know how.
Example, 0.00 instead of 0, 1.12 instead of 1.1234
The Var field for the Dynamic Text is cash
For the actionscript, i will paste all the codes related to the var cash
var cash:Number = 0;
if(_root.currentBlock._currentframe<20 && _root.currentBlock._visible==true){
_root.currentBlock.gotoAndPlay(20);
if(_root.currentBlock._name=="w"){
if(level==1){
cash+=.03;
}
if(level==2){
cash+=.05;
}
if(level==3){
cash+=.10;
}
}else{
gameOver();
}
onEnterFrame=function(){
mcProgress.gotoAndStop(Math.ceil(cash*20));
if(paused){
return;
any help by the pros here wld be appreciated. Thanks! :)
I bought a flash game and want to change the display to 2 decimal place but i do not know how.
Example, 0.00 instead of 0, 1.12 instead of 1.1234
The Var field for the Dynamic Text is cash
For the actionscript, i will paste all the codes related to the var cash
var cash:Number = 0;
if(_root.currentBlock._currentframe<20 && _root.currentBlock._visible==true){
_root.currentBlock.gotoAndPlay(20);
if(_root.currentBlock._name=="w"){
if(level==1){
cash+=.03;
}
if(level==2){
cash+=.05;
}
if(level==3){
cash+=.10;
}
}else{
gameOver();
}
onEnterFrame=function(){
mcProgress.gotoAndStop(Math.ceil(cash*20));
if(paused){
return;
any help by the pros here wld be appreciated. Thanks! :)