http://www.swfcabin.com/open/1235483307 this one is working fine, but I NEED it to be compatibile with flash player 4 and Action Script 1.0
**Error** Scene=Scene 1, layer=actionscript, frame=1:Line 1: You must export your movie as Flash 5 to use this expression.
time=new Date(); // time object
**Error** Scene=Scene 1, layer=actionscript, frame=1:Line 2: You must export your movie as Flash 5 to use this action.
var seconds = time.getSeconds()
**Error** Scene=Scene 1, layer=actionscript, frame=1:Line 3: You must export your movie as Flash 5 to use this action.
var minutes = time.getMinutes()
**Error** Scene=Scene 1, layer=actionscript, frame=1:Line 4: You must export your movie as Flash 5 to use this action.
var hours = time.getHours()
WARNING: This movie uses features that are not supported in the Flash 4 player
Scene=Scene 1, layer=hodiny, frame=1:Flash MX Text Field Instance Name
Total ActionScript Errors: 4 Reported Errors: 4
thats what I get when I want to publish for flash player 4
Im using this AS
time=new Date(); // time object
var seconds = time.getSeconds()
var minutes = time.getMinutes()
var hours = time.getHours()
if (hours<12) {
ampm = "AM";
}
else{
ampm = "PM";
}
while(hours >12){
hours = hours - 12;
}
if(hours<10)
{
hours = "0" + hours;
}
if(minutes<10)
{
minutes = "0" + minutes;
}
if(seconds<10)
{
seconds = "0" + seconds;
}
clock.text = hours + ":" + minutes + ":" + seconds +" "+ ampm;
I didnt create it I just found it on the internet, if you can fix it somehow please tell me =)