SE-NSE Forums:

Jump to content

  • (11 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic
  • Bookmark

Tutorial | Creating A Flash Lite Clock :) Rate Topic: ***** 2 Votes

#1 User is offline   photographer Icon

  • ._.
  • Icon
  • Group: Super Moderators
  • Posts: 5,056
  • Joined: 10-March 07
  • Gender:Male
  • Location:The Netherlands
  • Mobile:iPhone 3GS
  • Twitter:draxter26
  • Tutorials Submitted:7

Posted 22 August 2007 - 07:43 PM

Creating a Flash Lite 1.1 clock!

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 :p

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)
Posted Image

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:


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


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 :D ur done!

Final timeline layout:
Posted Image





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:

fscommand2 ("GetLocaleLongDate", "DATE");

5) Go to the 2nd frame of the Date layer and press F5

Done! :D

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
Posted Image
4) select the line 0-9 and type : in the box under it
Posted Image
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.

loadVariables("MP:",_root);
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
batt = fscommand2("GetBatteryLevel");
batt_txt = batt add " %";
setProperty("batt_fill", _xscale, batt);


2) Signal level
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


3) Volume level
  vol = fscommand2("GetVolumeLevel");
vol_txt = vol add " %";


Done!
I hope you had fun!

This post has been edited by Photographer: 12 June 2008 - 09:32 AM

-1

#2 User is offline   SnowiffiC Icon

  • Feel your SE-NSEs!
  • Icon
  • Group: Super Moderators
  • Posts: 6,168
  • Joined: 03-June 07
  • Gender:Male
  • Location:El' Denmark'O!
  • Mobile:iPhone 3G
  • Tutorials Submitted:-1

Posted 22 August 2007 - 07:56 PM

Hey Mate!!

Very good!

:good:

I was looking for this, great tutorial.
I guess there will be 1000 clocks in a week :lol:

This post has been edited by Mr. Thunderbird: 22 August 2007 - 07:57 PM

This is centered,

This is not,
This is right,

Snowiffic is hot.
0

#3 User is offline   photographer Icon

  • ._.
  • Icon
  • Group: Super Moderators
  • Posts: 5,056
  • Joined: 10-March 07
  • Gender:Male
  • Location:The Netherlands
  • Mobile:iPhone 3GS
  • Twitter:draxter26
  • Tutorials Submitted:7

Posted 22 August 2007 - 08:00 PM

thx :) :)

Have fun ;)

*still adding stuff*
0

#4 User is offline   paky Icon

  • n00b
  • Group: Members
  • Posts: 9
  • Joined: 05-May 07

Posted 22 August 2007 - 09:47 PM

Great tutorial.. thanx :good:

this is my first flash wallpaper :blink:

Attached File(s)


0

#5 User is offline   photographer Icon

  • ._.
  • Icon
  • Group: Super Moderators
  • Posts: 5,056
  • Joined: 10-March 07
  • Gender:Male
  • Location:The Netherlands
  • Mobile:iPhone 3GS
  • Twitter:draxter26
  • Tutorials Submitted:7

Posted 23 August 2007 - 11:04 AM

oooh nice ;) You should set the quality of the wallpaper to 0 compression....

1) Double click the picture icon (to the left of the name of the background in the library)
2) Mess with the settings
0

#6 User is offline   paky Icon

  • n00b
  • Group: Members
  • Posts: 9
  • Joined: 05-May 07

Posted 23 August 2007 - 07:06 PM

I have change the compression of movie, now it's to 100

Attached File(s)


0

#7 User is offline   Fus10n Icon

  • Padawan
  • Pip
  • Group: Members
  • Posts: 37
  • Joined: 19-August 07
  • Location:Nederland, Gelderland, Epe
  • Mobile:w810I, w580I

Posted 24 August 2007 - 07:40 AM

verry nice! just need to try this out :D

thanks for this photographer!
Posted Image
0

#8 User is offline   photographer Icon

  • ._.
  • Icon
  • Group: Super Moderators
  • Posts: 5,056
  • Joined: 10-March 07
  • Gender:Male
  • Location:The Netherlands
  • Mobile:iPhone 3GS
  • Twitter:draxter26
  • Tutorials Submitted:7

Posted 24 August 2007 - 03:50 PM

My pleasure :)
Good job on those wallpapers, paky!
0

#9 User is offline   guss Icon

  • n00b
  • Group: Members
  • Posts: 1
  • Joined: 25-August 07

Posted 25 August 2007 - 10:18 AM

hey..i put one of ur clock on my nokia 6234 but the clock dont work
...why?
0

#10 User is offline   SnowiffiC Icon

  • Feel your SE-NSEs!
  • Icon
  • Group: Super Moderators
  • Posts: 6,168
  • Joined: 03-June 07
  • Gender:Male
  • Location:El' Denmark'O!
  • Mobile:iPhone 3G
  • Tutorials Submitted:-1

Posted 25 August 2007 - 11:34 AM

View Postguss, on 2007-08-25 12:18, said:

hey..i put one of ur clock on my nokia 6234 but the clock dont work
...why?

Because this is a SonyEricsson forum :p
This is centered,

This is not,
This is right,

Snowiffic is hot.
0

#11 User is offline   deathnite Icon

  • Non-se-nse
  • PipPipPip
  • Group: Members
  • Posts: 168
  • Joined: 13-January 07
  • Gender:Male
  • Location:Middle of Nowhere
  • Mobile:W810i, W910i, V640i

Posted 25 August 2007 - 01:58 PM

haha, here comes my first flash wallpaper, looks better with the theme i got resized.

Posted Image

Attached File(s)


This post has been edited by deathnite: 12 January 2008 - 12:26 PM

make.believe | make.believe | make.believe green-red-lime green-gold
W810i | W910i | Nokia 5800 | Apple iPhone 3G | Nexus One
Bluetooth Watch MBW-150 Classic Edition | PSP Slim FW 5.00
PC: Intel i7 | 6GB DDR3 | NVIDIA GTX 260 | 26" LCD Samsung T260
OS: Windows 7, Mac OS X 10.6.2, Ubuntu 10.04
0

#12 User is offline   ikjadoon Icon

  • SVP
  • Icon
  • Group: VIP
  • Posts: 1,151
  • Joined: 21-September 06
  • Gender:Male
  • Location:Richmond, KY, USA
  • Mobile:W902 + 8GB M2

Posted 26 August 2007 - 02:20 AM

Quick question. Do these work 'straight from the download'? Do I need to upload any .swf files and such?

~Ibrahim~
SE W902

C2D E6600 @ ~3.5GHz,4GB of DDR2-800, 8800GTS 640MB @ 648/2016, Western Digital 640GB, CM Stacker 830, Vista Ultimate 64-bit: Overdrive PC Core2.SLI-Took 5 years to save up for this bad boy!
0

#13 User is offline   photographer Icon

  • ._.
  • Icon
  • Group: Super Moderators
  • Posts: 5,056
  • Joined: 10-March 07
  • Gender:Male
  • Location:The Netherlands
  • Mobile:iPhone 3GS
  • Twitter:draxter26
  • Tutorials Submitted:7

Posted 28 August 2007 - 06:55 PM

you need to upload the downloaded .swf into the images folder of ur phone
0

#14 User is offline   ikjadoon Icon

  • SVP
  • Icon
  • Group: VIP
  • Posts: 1,151
  • Joined: 21-September 06
  • Gender:Male
  • Location:Richmond, KY, USA
  • Mobile:W902 + 8GB M2

Posted 28 August 2007 - 08:51 PM

View PostPhotographer, on 2007-08-28 14:55, said:

you need to upload the downloaded .swf into the images folder of ur phone


That's what I thought. Thanks, they look pretty awesome!

~Ibrahim~
SE W902

C2D E6600 @ ~3.5GHz,4GB of DDR2-800, 8800GTS 640MB @ 648/2016, Western Digital 640GB, CM Stacker 830, Vista Ultimate 64-bit: Overdrive PC Core2.SLI-Took 5 years to save up for this bad boy!
0

#15 User is offline   Carlosmarioagamez Icon

  • Padawan
  • Pip
  • Group: Members
  • Posts: 36
  • Joined: 04-February 07

Posted 29 August 2007 - 02:21 PM

I can use Flash wallpapers on my w600 =(
Btw, good work Photographer

0

#16 User is offline   Dr.Uberveguad Icon

  • SVP
  • Icon
  • Group: VIP
  • Posts: 1,856
  • Joined: 04-May 07
  • Gender:Male
  • Location:Brazil - Rio de Janeiro
  • Mobile:W580i | W810i | W880i | W200a

Posted 01 September 2007 - 01:57 AM

Congrats, great nub tutorials
Posted Image
Posted Image
0

#17 User is offline   missawackie Icon

  • Non-se-nse
  • PipPipPip
  • Group: Members
  • Posts: 234
  • Joined: 29-April 07
  • Location:Guadeloupe
  • Mobile:W810i

Posted 01 September 2007 - 04:17 AM

here is my first try Vistal.swf 176x220 :p
Posted Image

Attached File(s)


This post has been edited by missawackie: 01 September 2007 - 04:20 AM

Posted Image
W810i R4EA031
Toshara loud acoustics, Sarmad camdriver
customized startup n shut down images/sounds
flash menu and wallpaper, black battery and signal indicator many working patches
0

#18 User is offline   Dr.Uberveguad Icon

  • SVP
  • Icon
  • Group: VIP
  • Posts: 1,856
  • Joined: 04-May 07
  • Gender:Male
  • Location:Brazil - Rio de Janeiro
  • Mobile:W580i | W810i | W880i | W200a

Posted 01 September 2007 - 02:08 PM

Nince job missawackie
Posted Image
Posted Image
0

#19 User is offline   photographer Icon

  • ._.
  • Icon
  • Group: Super Moderators
  • Posts: 5,056
  • Joined: 10-March 07
  • Gender:Male
  • Location:The Netherlands
  • Mobile:iPhone 3GS
  • Twitter:draxter26
  • Tutorials Submitted:7

Posted 01 September 2007 - 04:00 PM

Thats pretty lovely missawacky!!! :)
0

SE-NSE

#20 User is offline   missawackie Icon

  • Non-se-nse
  • PipPipPip
  • Group: Members
  • Posts: 234
  • Joined: 29-April 07
  • Location:Guadeloupe
  • Mobile:W810i

Posted 01 September 2007 - 05:07 PM

thks to Photographer for the tutorial
Posted Image
W810i R4EA031
Toshara loud acoustics, Sarmad camdriver
customized startup n shut down images/sounds
flash menu and wallpaper, black battery and signal indicator many working patches
0

  • (11 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic
  • Bookmark

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users