Adobe Flash Professional CS6 Adobe Flash Professional CS6 Classroom In A Book | Page 361
8 Click Insert.
Flash adds the code snippet to the current keyframe on the Timeline. A flag
appears on the Timeline to let you know that the code has been added, and to
indicate where on the Timeline it’s been placed.
9 Click on the flag to open the Actions panel to view the code.
Examine the code. The code is a little more complex than the code presented in
the previous section. The code includes a toggling functionality, so the user can
click once to load the SWF and then click again to unload the SWF. However,
because the external SWF that loads covers the entire Stage, the original movie
clip is hidden and inaccessible to click on. Use this code snippet if your layout
allows the button or movie clip that triggers the loading function to remain
visible on the Stage.
352
Lesson 9
Loading and Controlling Flash Content