Information Technology Reference
In-Depth Information
nicely and independently from all Web browsers, but they still need the
structure of HTM and an
Object Tag
to have them show up in your Web
portfolio. Don't worry, you can
Insert>Media>Flash
to add a SWF to a
Web page in Dreamweaver. Disregard and eventually delete the extra HTML
file that Flash generates. Some designers use this file as a test page before
placing the SWF into the live Web pages. If you want to eliminate the generation
of the HTML page, however, you can go to
Publish Settings
and uncheck the
HTML file box. After you do this, Flash will only generate the SWF file in your
root directory.
This animation will loop in the Web page. To add our button, we open the
existing FLA file.
We add a
stop action
and a button to enter the portfolio site.
•
First, we stop the animation.
We can make the animation stop by
placing a stop action in the timeline. A stop action is an ActionScript that
stops the timeline. It is the most basic and most used action available.
•
To add a stop action, click on the timeline and select a frame right after at
the end of the animation (frame 145 or 146):
•
Insert a keyframe (F6)
•
Open the ActionScript panel
Window>Development Panels>Actions
•
Click in the Actions panel and type
stop();
•
Or in the left side of the Actions panel,
•
Click
Global Functions>Timeline control>Stop
The action can be written or assigned from the Actions menus. For a simple
stop, there is no real need to use the Behaviors panel. The ActionScript panel
works just as easily.
Let us review what we have done so far in the creation of our text animation.
First, we brainstormed content for a text animation that highlights our name and
five words or phrases that define our abilities. Next, we set up our Flash
document so that we can work efficiently and intelligently on the piece. To
achieve this, we descriptively named our layers before we began working on
the nuts and bolts of the animation. Then, we animated our words. Finally, we
inserted a stop action so that the animation stops.