After exporting the .fla file to an .swf file I become a Compiler-Error.
Clock.as, Line 2 1046 – Typ not found.
After that, the clock just shows zeros 00 insteat of counting.
I am using Flash CS3 Professional
Can you help ?
P.S. the .xml is in the same folder than the .swf file
Not quite sure how you are getting that error, especially as line 2 is blank in Clock.as
Here’s a list of the common fixes:
1) Make sure come folder is in the same directory as the .fla when compiling the .swf
2) Make sure the link to the targetDate.xml is correct in the Main.as file
If these don’t work you could uncomment these line and put the target date in here:
//var targetDate:Date = new Date();
//targetDate.setTime( Date.UTC(2011, 4, 28, 20, 00) );
//clock.set(targetDate);
PS could you send the the entire error report?
Thanks
@Chris
You would been to change the update() function in the clock.as file.
Instead of getting the target time and minus it from the current time, you would need to increment it by +1000 (1 second)
You would then need to strip out all the XML and target date info.
Hope this helps.
This may be the dumbest question yet, but how do add this app to my, I am using basic html and style sheets, what line of code should I add to my html code.
ronDecember 14, 2010
Hi Oscar,
I can’t get the countdown working when i put the files in my server.
In local everything’s working.
Thx for your help !!!
Comments
Hey Oscar, I wanted to add something on top of it, however, when I export, it stops ticking and just shows 00:00:00:00
Make sure the XML is still in the same folder as the .swf file.
Hope this helps!
I would like to have this counter count UP from a date to infinity, can you point me in the right direction? Much appreciated.
Hi Oscar
I have the same issue than Megg.
After exporting the .fla file to an .swf file I become a Compiler-Error.
Clock.as, Line 2 1046 – Typ not found.
After that, the clock just shows zeros 00 insteat of counting.
I am using Flash CS3 Professional
Can you help ?
P.S. the .xml is in the same folder than the .swf file
Not quite sure how you are getting that error, especially as line 2 is blank in Clock.as
Here’s a list of the common fixes:
1) Make sure come folder is in the same directory as the .fla when compiling the .swf
2) Make sure the link to the targetDate.xml is correct in the Main.as file
If these don’t work you could uncomment these line and put the target date in here:
//var targetDate:Date = new Date();
//targetDate.setTime( Date.UTC(2011, 4, 28, 20, 00) );
//clock.set(targetDate);
PS could you send the the entire error report?
Thanks
@Chris
You would been to change the update() function in the clock.as file.
Instead of getting the target time and minus it from the current time, you would need to increment it by +1000 (1 second)
You would then need to strip out all the XML and target date info.
Hope this helps.
This may be the dumbest question yet, but how do add this app to my, I am using basic html and style sheets, what line of code should I add to my html code.
Hi Oscar,
I can’t get the countdown working when i put the files in my server.
In local everything’s working.
Thx for your help !!!
Ronny
Make sure the URL to the XML file is correct.
Where do I find installation instructions for this flash counter please.
I edited the xml page but I don’t see anything atr all that gives directions.
Thanks for your help
Rob Nunes
In Clock.as line 2 Shows an error…
1046:Type was not found or was not a compile-time constant: TextField.
Source: import flash.display.MovieClip;
I put the targetDate.xml and SWF file in the same location BUT it now shows 00:00:…only, why is it TextField???
@MarcusNeil on Twitter
Solved!
ALL you have to do is to place import flash.text.TextField; inside the clock.as because like you, you must be using Flash CS3! Enjoy!
Hi, I’ve just tried to download this zip and it says the zip file is invalid or corrupted?
Thanks, Clare
@Clare, Thanks for letting me know. I have uploaded it again. Regards.