Creating A Startdrag/Stopdrag Event Using Script Assist - MACROMEDIA FLASH 8-USING FLASH Use Manual

Using flash
Table of Contents

Advertisement

To print actions:
1.
From the Actions panel pop-up menu, select Print.
The Print dialog box appears.
2.
Select options and click Print.
Because the printed file won't include information about its originating Flash file,
Macromedia recommends that you include this information in a
script.
Creating a startDrag/stopDrag event
using Script Assist
The following example walks you through the process of creating a simple startDrag/stopDrag
event using Script Assist. When you complete this procedure, you will have a movie clip that
you can drag around within a constrained rectangle using your computer's mouse in a
published SWF file.
To learn more about the methods and functions used to create this example, see Learning
ActionScript 2.0 in Flash.
To create a startDrag/stopDrag event using Script Assist:
1.
Create a new Flash document, and save it as circle.fla.
2.
Draw a circle on the Stage.
3.
Select the circle on the Stage, and convert it into a movie clip symbol by doing one of the
following:
Select Modify > Convert to Symbol.
Drag the selection to the Library panel.
Right-click (Windows) or Control-click (Macintosh) and select Convert to Symbol
from the context menu.
4.
In the Convert to Symbol dialog box, enter circle_mc for the name of the symbol and select
the Movie Clip behavior. For more information, see
5.
Click OK.
Flash adds the symbol to the library, and the selection on the Stage becomes an instance of
the symbol.
6.
With the circle_mc movie clip still selected, enter the instance name myCircle in the
Instance Name text box of the Property inspector.
"Types of symbols" on page

Creating a startDrag/stopDrag event using Script Assist

action in the
comment
79.
331

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents