Help - Search - Members - Calendar
Full Version: Make A Flash Clock
mobile9 Forum > ThemeMaking > Chat, Tutorials & Resources > Tutorials
sp0rtskiller03
hi there m9, i just found out how to make a flash clock and thanks to this tutorial that i found in the net. i just want to share this to you so that you'll not have problem in making a flash clock.


Make a Flash Clock

This tutorial is for phones which support swf images.

Things you will need: Adobe flash CS3 (http://www.download.com/Adobe-Flash-Professional/3000-6676_4-10018718.html)

Lets get started.

Step 1) Create a new flash document, set the resolution as your phones resolution.

(Etc. 176x220/240x320)

(If you want to set your own picture as the background, press Ctrl + R, if the picture isnt the correct size, use the transform tool to resize it.)

Step 2) Click on Publish:Settings.

Step 3) Click on the Flash tab and change the version to Flash Lite 1.1.



Step 4) Add a new layer and name it Time.( To add a layer, right click on your first layer and click Insert Layer.)

Step 5) Add a textfield to the layer.

Step 6) Type 99.99.99 in the textfield.

Step 7) Set the Text to Dynamic text.

Step 8) Type TIME in the VAR box.



Step 9) Create a new layer and name it Action Layer

Step 10) Right click on the first frame of Action Layer

Step 11) Click on Actions

Step 12) Copy and paste this code into the box:
fscommand2("GetLocaleTime", "TIME");

TIME_SEC = fscommand2("GetTimeSeconds");
// add leading 0 to hours
if (h<10) {h="0"+h;};

// add leading 0 to seconds
if (s<10) {s="0"+s;};

// add leading 0 to minutes
if (min<10) {min="0"+min;}




Step 13) Click on the first frame of the layer Time and press F5.



Step 14) Now press Ctrl + Enter to get a preview of your new swf clock wallpaper.



There, you have just finished your flash clock.

To save:

File-> Publish settings-> Formats-> check only swf -> set the destination folder.
When you want to save,you don't press "save" or "save as" but "publish"
Remember to save it as an SWF file... Otherwise is will not work.


How to add a date:

Step 1) Make a new layer and name it Date

Step 2) Do steps 5 and 7 of the main tutorial.

Step 3) Type in the date like this: 2008-Nov-24

Step 4) Type in DATE in the VAR box.

Step 5) On frame 1 of the Action Layer, paste the below code above the previous code.
fscommand2 ("GetLocaleLongDate", "DATE");

Step 6) Now go to the 2nd frame of the Date layer and press F5.

You have just inserted the date.
idias_1
Thanks for the very detailed tutorial Sports bro thumbsup.gif clapping.gif

I definitely will try to make some myself thumbsup.gif

Really appreciate it thumbsup.gif wub.gif
sp0rtskiller03
my pleasure idias.
c2d22
Great tutorial
thanks for this
it was my luck that i had downloaded adobe falsh cs3 just 2 days before so thank you
Yoyocell
wow Sporty its very useful Mate clapping.gif thanks for sharing with us thumbsup.gif
qg2
WoW Bro 9c share... clap.gif tnx for share it with us.... notworthy.gif
ALJarayda
WoW Bro 9c share... thx for share it with us....
zeinabnaderian
man i was wondering how to make a flash clock thanks a lot bro it was awesome
novchanthol
Another great job and very useful. Thank Sporty thumbsup.gif smile.gif i always looking for this. But which version of swf you Published, Flash Lite 1.0 or 1.1 does not support the scrape image. For the best use as Flash swf v7.0 or upper for smoothly playing.
eliasjan
QUOTE (sp0rtskiller03 @ Nov 7 2010, 04:56 AM) *
hi there m9, i just found out how to make a flash clock and thanks to this tutorial that i found in the net. i just want to share this to you so that you'll not have problem in making a flash clock.


Make a Flash Clock

This tutorial is for phones which support swf images.

Things you will need: Adobe flash CS3 (http://www.download.com/Adobe-Flash-Professional/3000-6676_4-10018718.html)

Lets get started.

Step 1) Create a new flash document, set the resolution as your phones resolution.

(Etc. 176x220/240x320)

(If you want to set your own picture as the background, press Ctrl + R, if the picture isnt the correct size, use the transform tool to resize it.)

Step 2) Click on Publish:Settings.

Step 3) Click on the Flash tab and change the version to Flash Lite 1.1.



Step 4) Add a new layer and name it Time.( To add a layer, right click on your first layer and click Insert Layer.)

Step 5) Add a textfield to the layer.

Step 6) Type 99.99.99 in the textfield.

Step 7) Set the Text to Dynamic text.

Step 8) Type TIME in the VAR box.



Step 9) Create a new layer and name it Action Layer

Step 10) Right click on the first frame of Action Layer

Step 11) Click on Actions

Step 12) Copy and paste this code into the box:
fscommand2("GetLocaleTime", "TIME");

TIME_SEC = fscommand2("GetTimeSeconds");
// add leading 0 to hours
if (h<10) {h="0"+h;};

// add leading 0 to seconds
if (s<10) {s="0"+s;};

// add leading 0 to minutes
if (min<10) {min="0"+min;}




Step 13) Click on the first frame of the layer Time and press F5.



Step 14) Now press Ctrl + Enter to get a preview of your new swf clock wallpaper.



There, you have just finished your flash clock.

To save:

File-> Publish settings-> Formats-> check only swf -> set the destination folder.
When you want to save,you don't press "save" or "save as" but "publish"
Remember to save it as an SWF file... Otherwise is will not work.


How to add a date:

Step 1) Make a new layer and name it Date

Step 2) Do steps 5 and 7 of the main tutorial.

Step 3) Type in the date like this: 2008-Nov-24

Step 4) Type in DATE in the VAR box.

Step 5) On frame 1 of the Action Layer, paste the below code above the previous code.
fscommand2 ("GetLocaleLongDate", "DATE");

Step 6) Now go to the 2nd frame of the Date layer and press F5.

You have just inserted the date.

Thank You But Also You Can Make It In Macromedia Flash
akhilnn
thx clap.gif clap.gif clap.gif clap.gif clap.gif
anil8664
Thanx bro
Aleena143
useful tutorial.thanks.
san-sagar
notworthy.gif wow Sporty its very useful Mate notworthy.gif
nikz123
nice tutorial. smile.gif
thumbsup.gif
shalvinCalicut
thumbsup.gif thumbsup.gif thumbsup.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.