Added: 2 years ago
From: tutvid
Views: 30,749
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (67)

Sign In or Sign Up now to post a comment!
  • not sure why mine isnt working?

  • can u send me script codes plz, :-)

  • 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.

  • Wow, Because of this, I have learned a lot it is easy to follow.

  • thanks so much! Easiest and best tutorial to follow!

  • simple and useful! great! thank you, its work!

  • 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 )

  • is there a possible to get just the action script so that I don't need to type it down?

    Would be nice.

  • Awesome video thanks! My only problem is January shows up as "0" haha

  • Dot COOOM

  • 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)

  • 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;

    }

  • 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 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/_timerDispa­tch() at flash.utils::Timer/tick()

  • 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

  • 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 does someome aswered you?

    i got the same problem..

  • Nice tut but when you change from military time to regular time, the 0 in front of minutes disappears again.

  • Great job

  • Thumbs up 4 this vid!

    Thanks for this amazing tutorial!

  • 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.

  • excuse my good sir, lol.

    But when ever i test my movie thing nothing happens, could you help me out?

  • Make a countup timer best of both worlds.

  • mines not working it keep showing the year on both date and time

  • 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

  • can anyone tell me where to download flash setup ?!

  • @YourHeroisMyEnemy Adobes website.

  • How to see if a txt file file exists???

    in ActionScript 3.0??

  • Is there a way I can replace date numbers with words? Eg: 1=Monday or 2=February?

  • 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.

  • if you Action script is correct it should acess your computer to find the day month year minutes ect.

  • 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 "()"

  • awsome! 5 Stars

  • 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 and how are you going to do it xD? Hahah :( I'm a newbie in flash xD

  • very good tutorial. Sir but please make a tutorial of complete flash calculator with one Text field. Thanks

  • Am I the only one here that has no idea what's going on!?! lol

  • awsommee!!

  • 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.

  • 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.

  • Comment removed

  • 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??

  • haha i didnt notice that it wrote "ORDER NOW!" until the very end XD

  • That is SO COOOL...thanks Nathaniel!!

  • why cant you just add the +0 for the seconds in the same statement you made for the minutes ?

  • 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

  • Thanks dude

  • Great tut, would it be the reverse process to create a countdown?

  • takes you along time to upload videos. must be REALLY BIG files xD

  • yeah..it is 74mb for 480 fps..it was big enough..

  • thanks! nice tutorial

    btw.. the quality of the video is awesome! :)

  • could you do a countdown aswell?

  • Google that its already out :)

  • December 5th?

  • Yea Sinterklaas in Holland ^^

  • 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

    Yup

  • Thanks =)

  • 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.

  • Great tutorial and quite useful! Thanks! =]

  • 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.

  • 3rd on turn

  • u are the best!

    thanks a lot man

  • i sweat to go these no-lives go and find fresh videos just to put in 1st, anyway nice tutorial

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more