Flash Cs3: Using Flash To Control The Timeline
Flash Cs3: Using Flash To Control The Timeline
FLASH CS3
Objective: Create an image viewer. Skills: Drawing tools Symbols and Buttons ActionScript
Convert to symbol
Assign ActionScript
transparent and fill color to black. Use the rectangle tool while holding down the shift key to create a perfect square. Switch to the selection tool (v) and drag the corners together creating the triangle.
drawn button icon. Press F8 to convert it to a symbol. Name it btnButton Change type to: Button Center registration Press OK
the library. Drag another instance of the button onto the stage. Place the two icons together. Give the left icon an instance name of back and use modify to flip it horizontally. Give the right icon an instance name of forward.
ActionScript Panel. Make sure that AS 1.0 & 2.0 is selected from the filter. Open Global Functions>Movie Clip Control and double click on.
Then double click release.
ActionScript continued
Place your cursor between
the two brackets and press Enter Open Timeline Control and double click on prevFrame to insert code. Collapse AS Panel and select instance forward.
AS Continued
Expand AS panel and
repeat steps. Instead of double clicking on prevFrame, double click on nextFrame. Collapse your AS Panel
layers and label them actions and pictures. Arrange the layers in the following order. Select the first frame of the actions layer and open AS Panel. Add a stop(); action. Close AS Panel.
Insert pictures
Now it is time to add the content that the interface will control. Select the first frame of the pictures layer. Choose File>Import>Import to stage or press ctl+r. Import a series of pictures and arrange them on the stage. Select the last frame on the controls layer and press F5.
Publish