Hello everyone!
On many requests I made this tutorial for creating a flash lite screensaver/wallpaper with a clock!
Things you will need:
-Adobe Flash
-Inspiration
BASIC CLOCK
1) Create a new flash document in resolution 176*220 (w810i w550i w600i) or 240*320 (w580i s500i w880i w850i w830i).
2) In the properties panel set the publish settings to Flash Lite 1.1
3) Set the background colour to any colour you want, most of you will set a nice picture in the background anyway.
4) Add a new layer and call it Time.
5) Make a textfield on the Time layer and type 99:99:99 and set the var to TIME
(the numbers dont matter, you can type anything you want)

6) Drag the box as far as needed till all text shows up.
7) Make a new layer and call it Action Layer.
8) Open up the actionscript panel and paste this code on frame 1 of the Action Layer:
CODE
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;}
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;}
9) Go to the 2nd frame of the Time layer and press F5.
10) Go to the 2nd frame of the Time layer and press F5.
Press ctrl+ENTER and see
Final timeline layout:

ADDING A WALLPAPER!
1) Open the just created document
2) Go to the background layer and press CTRL+R
3) Import the picture you wish
(option! When the wallpaper aint the right size, use the Tranform tool to resize it to the wished format
ADDING A DATE!
1) Open ur just created document.
2) Make a new layer and call it Date, type any date you wish (like 99-aug-29)
3) Set the var of the Date layer to date
4) On frame 1 of the Action Layer paste this code above the previous code:
CODE
fscommand2 ("GetLocaleLongDate", "DATE");
5) Go to the 2nd frame of the Date layer and press F5
Done!
EMBEDDING A FONT!
1) Open the last created document
2) Select a textbox you created (the one with time or date)
3) Click "embed" in the properties panel

4) select the line 0-9 and type : in the box under it

5) Press ok!
ADDING NOW PLAYING SECTION!
(Thanks AKSHAY for this)
1.Create a new layer Music or XYZ.
2. Create three dynamic text boxes.
3. Set each text box VAR as TIME, ARTIST, ALBUM respectively.
4. Then add this code to the ActionScript layer or Same Music layer.
CODE
loadVariables("MP:",_root);
fscommand2 ("MP:", "TITLE");
fscommand2 ("MP:", "ARTIST");
fscommand2 ("MP:", "ALBUM");
fscommand2 ("MP:", "TITLE");
fscommand2 ("MP:", "ARTIST");
fscommand2 ("MP:", "ALBUM");
Adding battery level, signal strength and volum level!
(Thanks DEATHNITE for this section
1) Battery level
CODE
batt = fscommand2("GetBatteryLevel");
batt_txt = batt add " %";
setProperty("batt_fill", _xscale, batt);
batt_txt = batt add " %";
setProperty("batt_fill", _xscale, batt);
2) Signal level
CODE
sig = fscommand2("GetSignalLevel");
sig_txt = sig add " %";
setProperty("batt_fill", _xscale, batt);
/:sigframe = int(sig / 100 * 5 + 0.5);
tellTarget("sig_level")
{
gotoAndStop(eval("/:sigframe") + 1);
} // End of TellTarget
sig_txt = sig add " %";
setProperty("batt_fill", _xscale, batt);
/:sigframe = int(sig / 100 * 5 + 0.5);
tellTarget("sig_level")
{
gotoAndStop(eval("/:sigframe") + 1);
} // End of TellTarget
3) Volume level
CODE
vol = fscommand2("GetVolumeLevel");
vol_txt = vol add " %";
vol_txt = vol add " %";
Done!
I hope you had fun!





