You are on page 1of 13

Thetnaunghtut Micromedia flash professional 8

Create flash clock using with fash software

Micromedia flash software software open


။ flash new document ပါ။ Document properties
Dimention ။
color

၂။ (line tool)
properties stroke

၃။ Selection Tool select properties Height H: 130


Align horizontal center (Align
To Stage

kstu Page 1
Thetnaunghtut Micromedia flash professional 8

Align Windows -> Align click


)

> right click>Convert to Symbol Name


indicator Type: Movie clip၊ Registration:
(Registration Movie Clip
Library indicator Movie
Clip

kstu Page 2
Thetnaunghtut Micromedia flash professional 8

properties
(sec_mc)

Movie Clip Movie Clip Ctrl + C copy Ctrl


+ V copy
min_mc hr_mc

၅။ min_mc properties Height (H:) Color Tint


100%

hr_mc Height (H:) 90 Color

kstu Page 3
Thetnaunghtut Micromedia flash professional 8

၆။ Layer 1 layer
layer1
indicator

(insert layer) Double Click action

kstu Page 4
Thetnaunghtut Micromedia flash professional 8

action layer frame F9


copy

time = new Date();

var second = time.getSeconds();

var minute = time.getMinutes();

var hour = time.getHours();

hour = hour + (minute/60);

second = second*6;

minute = minute*6;

hour = hour*30;

sec_mc._rotation = second;

min_mc._rotation = minute;

hr_mc._rotation = hour;

kstu Page 5
Thetnaunghtut Micromedia flash professional 8

၇။ Layer ၂ frame2 Insert Frame frame loop


action script
(onEnterFrame function )

layer frame insert frame


shoutcut key

>F5

control enter test movie

kstu Page 6
Thetnaunghtut Micromedia flash professional 8

၈။
Library indicator double click
Y

Ctrl+ Enter test movie

kstu Page 7
Thetnaunghtut Micromedia flash professional 8

back
indicator movie click

၉။ background layer
insert layer name background
layer background layer drag

layer layer

kstu Page 8
Thetnaunghtut Micromedia flash professional 8

background

၁၀။ background

tool

Bar oval tool fill color


stroke color

stroke color

kstu Page 9
Thetnaunghtut Micromedia flash professional 8

font style
tool bar

A click

kstu Page 10
Thetnaunghtut Micromedia flash professional 8

ctrl+enter test movie ။


flash design

Action script

၁၀။ Action Script

time = new Date();

// time Date object

var second = time.getSeconds();

//variable second second

var minute = time.getMinutes();

// minute

var hour = time.getHours();

kstu Page 11
Thetnaunghtut Micromedia flash professional 8

// hour

hour = hour + (minute/60);

// hour hour + (minute/60)


၂ ၁ ၂
၂ ၁

hour _rotation

-၁ ၃၀ 1 2ၾ
hour ၁.၅ .hour ၁ minute
၃၀ -

၁ + (၃၀ / ၆၀) = ၁.၅

second = second*6;

minute = minute*6;

hour = hour*30;

// Movie Cl rotation rotation


၃၆၀ rotation ၆၀

၃၆၀ / ၆၀ = ၆


second ၆ ၆

kstu Page 12
Thetnaunghtut Micromedia flash professional 8

rotation ၁၂

၃၆၀ / ၁၂ = ၃၀

hour ၃၀

kstu Page 13

You might also like