Propellerhead-Graphix

 

  Kool Clip-Art    Kool Moves and Flash - Related Tutorials

            All .fun files presented on this site are original works made with Kool Moves © 2004 Propellerhead-Graphix, PO Box 14, Capac, MI, 48014

 

Actionscript
Actionscript
First we are going to create a short Kool Moves movie which will later become a movie clip to insert into our main movie.
Simple Clock
Learn how to add a Simple Clock to your movie using Actionscript
1.
The tutorial above may involve the use of some actionscript, html, and the like, but are not necessarily intended to teach them. These tutorials are intended to familiarize new users to the Kool Moves interface and contain simplified examples of how to perform specific tasks in Kool Moves as they would relate to the use of materials from this site. Suggested examples contained within these tutorials may not necessarily be the "best" way to accomplish a task, but they do accomplish the job at hand. These tutorials are not an attempt to copy already existing tutorials. In some instances, more detailed tutorials on actionscript and the use of the Kool Moves tool are available at the Support page on the Kool Moves web site.
A simple digital clock can be a nice addition to a web site. Creating such a clock is relatively easy with Kool Moves. Our clock will first be created as a small movie, then inserted into the main movie as a movie clip. The following steps will show you how:
Open Kool Moves, choose Movie > Movie Width/Height from the top menu and resize your movie to 355x30
From the Toolbox, select Text > Dynamic Text (shown below) to add a dynamic textbox (with default settings) to your movie.
Your cursor will change to a crosshair (+). Drag the crosshair across the screen and create a dynamic textbox about the same size as your movie frame. the result should look similar to what is shown below:
At the bottom of the stage, click the the Plus (+) symbol (shown below) and add ten more frames to your movie so there are 11 total frames in the movie.
From the menu at the top, choose Views > Actions and Sounds Overview to open the Actions and Sounds Overview dialog box. Highlight frame 1 as shown below.
Now click the plus (+) symbol to open the Actions menu and select Action Script from the dropdown menu to open the Action Script Editor..
Inside the Action Script Editor, click next to the number 1 and type in the following line of actionscript: time = date(): then click OK to close the editor. (The letters AS will now appear next to frame 1 in the Action and Sounds Overview to indicate that that frame now contains actionscript.)
In the Actions and Sounds Overview, highlight frame 11, click the plus symbol (+) to open the Actions menu, select Action Script from the drop down menu, to open the Action Script Editor.
Inside the Action Script Editor, click next to the number 11 and type in the following line of actionscript: gotoAndPlay (1): then click OK to close the editor. (The letters AS will now appear next to frame 11 in the Action and Sounds Overview to indicate that that frame now contains actionscript.) Now exit all dialogs back to the movie stage.
Now rename your dynamic text box by selecting your dynamic text box and click Views > Score/Timeline from the main menu to open the Score/Timeline dialog for your movie.  Highlight and right-click txt1, choose Rename, then rename the textbox time. Exit the dialogs.
You have just completed the clock movie that will become a movie clip inside of your main movie. Now open your main movie, choose File > Insert Movie from the menu, then choose clock.fun from the list, then click the Add button to insert it into your main movie. On the editing stage, select the inserted movie and position it where you want it. The clock will now play on one frame in your main movie. If you want the clock to appear on more than one frame, at this time, copy it to the other frames.
2.
Click File > Save As, type in clock as your file name and click Save to save the movie.
To make the clock appear to play properly, you must re-set both the default tweens and the movie speed  (frames per second) for your movie. Choose Frames > Default Tweens, set the tweens to zero (0), then click OK to exit the dialog. Then choose Movie > Movie Speed, and set the speed at 11 fps, then click OK to exit the dialog.
Note: This clock configuration works best for web pages that are meant for short term viewing as the seconds display for the clock may not time perfectly for all viewing configurations.