# Convert MX2004 to Flash 8 AS

**URL:** <https://forum.kirupa.com/t/convert-mx2004-to-flash-8-as/225578>\
**Category:** flash\
**Created:** [May 14, 2007, 12:19am UTC](https://forum.kirupa.com/t/convert-mx2004-to-flash-8-as/225578 "2007-05-14T00:19:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eibach](https://avatars.discourse-cdn.com/v4/letter/e/edb3f5/32.png) [@Eibach](https://forum.kirupa.com/u/Eibach)\
**Post date:** [May 14, 2007, 12:19am UTC](https://forum.kirupa.com/t/convert-mx2004-to-flash-8-as/225578/1 "2007-05-14T00:19:33Z")

</div>

can someone explain to me why this does not work when i switch it to flash player 8??  
it orgionaly came as Flash player 6 and as 1, it switchs to as2 fine but when i bump it up to flash player 8 the numbers will not show up… any sugestions???

[AS]  
var time\_mc:MovieClip = attachMovie(“time\_mc”,“time\_mc”,1);  
time\_mc.\_x = 200;  
time\_mc.\_y = 200;  
var unpause\_btn:MovieClip = attachMovie(“unpause\_btn”,“unpause\_btn”,2);  
unpause\_btn.\_x = 100;  
unpause\_btn.\_y = 100;

unpause\_btn.onPress=function() {  
unpause();  
}  
function restartTimer() {  
\_root.time\_mc.minutes = “00”;  
\_root.time\_mc.seconds = “00”;  
buttonPressTime = getTimer()/1000-pauseLength;  
pause1();  
}  
//  
function pause1() {  
pauseTime = (getTimer()/1000);  
timing = false;  
}  
//  
function unpause() {  
unpauseTime = getTimer()/1000;  
pauseLength = (unpauseTime-pauseTime)+pauseLength;  
timing = true;  
}  
//  
onEnterFrame = function() {  
totalTime = getTimer()/1000-pauseLength;  
trace(totalTime);  
goTime = (totalTime-buttonPressTime);  
//this is where you set the original amount of time (in seconds)  
StartTime = 70;  
runTime = (StartTime - goTime);

//  
if (timing) {  
\_root.time\_mc.minutes = Math.floor((runTime/3600)\*60);  
\_root.time\_mc.seconds = Math.floor(((runTime/3600)\*60-\_root.time\_mc.minutes)\*60);  
if (\_root.time\_mc.seconds\<10) {  
\_root.time\_mc.seconds = “0”+\_root.time\_mc.seconds;  
}  
if (\_root.time\_mc.minutes\<10) {  
\_root.time\_mc.minutes = “0”+\_root.time\_mc.minutes;  
}

if (runtime \<= 0) {  
restartTimer();

}  
}  
};  
[/AS]
