Fonts should be embedded for any text that may be edited at runtime, other than text with the "Use Device Fonts" setting. Use the Text > Font Embedding command to embed fonts.
hey man i did love the video but last bit of code does not work as soon 12 h mode is on miniut loose there zero please help and what to right if i want a text not number in if statement (for month and am pm )
Heya Tutvid! Great tutorial! But im getting an error. When the SWF reaches the actionscript line where the clock is programmed in it first shows the names "TIME" and "DATE" as text for 1 second and then it goes over to showing the correct date and time.
In the output window it gives the next error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
Could you help me solving it? Ive searched online for a while but cant seem to fix it!
TypeError: Error #1009: Cannot access a property or method of a null object reference. at Interface_v4_fla::MainTimeline/loopF() at flash.utils::Timer/_timerDispatch() at flash.utils::Timer/tick()
Fonts should be embedded for any text that may be edited at runtime, other than text with the "Use Device Fonts" setting. Use the Text > Font Embedding command to embed fonts.
just noticed, but i think you should move the creation of the time variable outside of the function because it is looped causing unnecessary space allocation, which could (i think) crash the program or your computer....
can anyone check me on this? ...been awhile since ive programmed.
but at 16:38 most of us from foreign countries will be more concerned about the date being displayed as 12 may instead of 5 december :) than the time being 12 hours off.
if you want to add a 0 before minutes AND seconds u will have to hange the code slightly.. because it wont work if u just throw another "if" statement - in his case it will add ether only a 0 at the minutes or only at the seconds depending on which "if" statement is the last.
The control flow is wrong. If the hour > 12, then the minutes logic will be ignored. There should be a function that converts the hours, minutes and seconds into whatever format you want.
Awesome stuff. I'm new to as3, so forgive the nooby question... but if you wanted to have am/pm next to the time, you would just have an if statement for both hours above 12 and below 12 i.e.
not sure why mine isnt working?
arsenalram1 2 days ago
can u send me script codes plz, :-)
Tonnzninety3 3 weeks ago
I am geting this error plz help me
Fonts should be embedded for any text that may be edited at runtime, other than text with the "Use Device Fonts" setting. Use the Text > Font Embedding command to embed fonts.
alluanilkumar83 3 months ago
Wow, Because of this, I have learned a lot it is easy to follow.
joeygart 4 months ago
thanks so much! Easiest and best tutorial to follow!
ladysiathi 10 months ago
simple and useful! great! thank you, its work!
evaksanTube 11 months ago
hey man i did love the video but last bit of code does not work as soon 12 h mode is on miniut loose there zero please help and what to right if i want a text not number in if statement (for month and am pm )
anupamvipul233 1 year ago
is there a possible to get just the action script so that I don't need to type it down?
Would be nice.
Nagashiwa 1 year ago
Awesome video thanks! My only problem is January shows up as "0" haha
AoiTaka6 1 year ago
Dot COOOM
SiKiZZY 1 year ago
IF ANY ONE GOT AN ERROR ON LINE 5 I FIXED MY ERROR BY ADDDING BRACES LIKE THIS
{function loopF(event:TimerEvent):void}
remember always use error check ( blue tick at top of actions pannel)
XxiLOGiiKzxX 1 year ago
This has been flagged as spam show
Hi brother needs to chat a, Asian women busizz4me.info
intakhabsohail 1 year ago
For those who can't figure out how to add a 0 to the seconds, use this script.
if (second < 10){ time_txt.text = hour + ":" + minute + ":" + "0" + second;
}
Reminini 1 year ago
Heya Tutvid! Great tutorial! But im getting an error. When the SWF reaches the actionscript line where the clock is programmed in it first shows the names "TIME" and "DATE" as text for 1 second and then it goes over to showing the correct date and time.
In the output window it gives the next error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
Could you help me solving it? Ive searched online for a while but cant seem to fix it!
Cheers!
egbertjanssens 1 year ago
@egbertjanssens THAT IS:
Timer runs
TypeError: Error #1009: Cannot access a property or method of a null object reference. at Interface_v4_fla::MainTimeline/loopF() at flash.utils::Timer/_timerDispatch() at flash.utils::Timer/tick()
egbertjanssens 1 year ago
thanks i'm just retarde at action script lol
1 thing i lern was that the timer and date is from the users pc lol
MinhocaCSS 1 year ago
I get this error message:
Fonts should be embedded for any text that may be edited at runtime, other than text with the "Use Device Fonts" setting. Use the Text > Font Embedding command to embed fonts.
kounno 1 year ago
@kounno does someome aswered you?
i got the same problem..
marcocanteiro 1 year ago
Nice tut but when you change from military time to regular time, the 0 in front of minutes disappears again.
jaxx108 1 year ago
Great job
ankitjainneo 1 year ago
Thumbs up 4 this vid!
Thanks for this amazing tutorial!
faceblues 1 year ago
just noticed, but i think you should move the creation of the time variable outside of the function because it is looped causing unnecessary space allocation, which could (i think) crash the program or your computer....
can anyone check me on this? ...been awhile since ive programmed.
fooblet 1 year ago
excuse my good sir, lol.
But when ever i test my movie thing nothing happens, could you help me out?
Striarii 1 year ago
Make a countup timer best of both worlds.
hookedongamingclan 1 year ago
mines not working it keep showing the year on both date and time
Snaketazzie 1 year ago
can someone please tell me how to combine zero infront of minutes and seconds like if it is 18:5:3 i want it to show 18:05:03 Thanks
megafragmaster 1 year ago
can anyone tell me where to download flash setup ?!
YourHeroisMyEnemy 1 year ago
@YourHeroisMyEnemy Adobes website.
7878444 1 year ago
How to see if a txt file file exists???
in ActionScript 3.0??
m4unot 1 year ago
Is there a way I can replace date numbers with words? Eg: 1=Monday or 2=February?
NxP100 1 year ago
nice vid.
but at 16:38 most of us from foreign countries will be more concerned about the date being displayed as 12 may instead of 5 december :) than the time being 12 hours off.
markkthemk 1 year ago
if you Action script is correct it should acess your computer to find the day month year minutes ect.
navylacrossefan 1 year ago
got the same problems as graphicsite.. using cs3 AS3.0 but it doesn't work.. compiler failure 1046 in the first line and every not filled "()"
JaySMusicTV 2 years ago
awsome! 5 Stars
EBookCo 2 years ago
if you want to add a 0 before minutes AND seconds u will have to hange the code slightly.. because it wont work if u just throw another "if" statement - in his case it will add ether only a 0 at the minutes or only at the seconds depending on which "if" statement is the last.
Damaskal 2 years ago
@Damaskal and how are you going to do it xD? Hahah :( I'm a newbie in flash xD
elizaII 1 year ago
very good tutorial. Sir but please make a tutorial of complete flash calculator with one Text field. Thanks
humayunful 2 years ago
Am I the only one here that has no idea what's going on!?! lol
jdgator95 2 years ago
awsommee!!
spartanbruno 2 years ago
I'm confused, I keep trying to add the 0 to seconds, but whenever I do it I get an error saying my else is unexpected.
but if I remove it, my clock turns back to 24 hour and the minutes doesn't add a zero.
ZTD09 2 years ago
The control flow is wrong. If the hour > 12, then the minutes logic will be ignored. There should be a function that converts the hours, minutes and seconds into whatever format you want.
muscleheadzzz 2 years ago
Comment removed
UchiaMadara 2 years ago
PLEASE HELP: I did the same coding (AS3.0 but in CS3. Compiler failure 1046 on the first line. Don't know how to fix and what it is??
graphicsite 2 years ago
haha i didnt notice that it wrote "ORDER NOW!" until the very end XD
Mariehanerrific 2 years ago
That is SO COOOL...thanks Nathaniel!!
graphicsite 2 years ago
why cant you just add the +0 for the seconds in the same statement you made for the minutes ?
Speakersoxx 2 years ago
cause then it would add +o to the seconds if the minutes were below 10
ex: time is 12:04:36
clock would display: 12:04:036
ZTD09 2 years ago
Thanks dude
kyllersmyle 2 years ago
Great tut, would it be the reverse process to create a countdown?
emgobyron 2 years ago
takes you along time to upload videos. must be REALLY BIG files xD
BarclayTechHelp 2 years ago
yeah..it is 74mb for 480 fps..it was big enough..
hentianputra 2 years ago
thanks! nice tutorial
btw.. the quality of the video is awesome! :)
MrTekken138 2 years ago
could you do a countdown aswell?
igor92 2 years ago
Google that its already out :)
thaman667 2 years ago
December 5th?
FlamingDuckStudios 2 years ago
Yea Sinterklaas in Holland ^^
thaman667 2 years ago
Awesome stuff. I'm new to as3, so forgive the nooby question... but if you wanted to have am/pm next to the time, you would just have an if statement for both hours above 12 and below 12 i.e.
if (hour > 12){
........ + second +"PM";
??
juvesteve 2 years ago
@juvesteve
Yup
FlamingDuckStudios 2 years ago
Thanks =)
juvesteve 2 years ago
can this code be used for a count up timer as well? example: every second adds 300 to the dynamic txt field.
PS I have learned so much with your tutorials. thank you for uploading.
Xcalibar34 2 years ago
Great tutorial and quite useful! Thanks! =]
marquesbrownlee 2 years ago
the code on line 19 doesn't have to be an 'else if' statement. It could just be a nested if statement inside the if statement on line 17.
DariusDaGreat86 2 years ago 2
3rd on turn
inc2000glw 2 years ago
u are the best!
thanks a lot man
Marvelus2009 2 years ago 8
i sweat to go these no-lives go and find fresh videos just to put in 1st, anyway nice tutorial
Djghost1123 2 years ago 8
This has been flagged as spam show
2nd bitch
ptenvoordeable 2 years ago
This has been flagged as spam show
1st lol
Ryan2crowder 2 years ago