:: ENGLISH :: PORTUGUêS ::
|
Beer, wine or water? What do you drink?
Partners: Server time 08:44 Location: Home Page > Resources > 648739046 What time it is?
To use and understand this resource you must be able to create Movie Clips(MC), give them names(Instance Name) and insert Action Script Code in a MC. To start off let’s make a MC (CTRL+F8) which will be your CLOCK, inside it let’s also create three more MC that will be the clock hands. This three MC (clock hands) must be identified with one instance name (CTRL+I) so that we can interact with them using Action Script. The Instance Names that we will use are hours_hand, minutes_hand and seconds_hand. So that the clock hands rotation is correctly done, it’s importante that they are align like this:
Inside the clock MC we will add a text box to we will use to show the time in a digital format. To be able to use it, we must give a name to the variable in the text box options. The name we are going to use is “digital”. Now that we have all the necessary objectc, we will drag the clock from the library to the stage. Now selecting the clock we open the actions window so we can insert the following code:
by Paulo Fonseca in 2004-06-25 |