Setting a Custom Cursor
The code snippet that you just added did not require anything to be selected before you added it, but many code snippets only work if you first select the object on stage that you wish to be affected by the code snippet.
In the next steps you will add a code snippet that will change the star_mc movie clip onstage into a custom cursor.
- On the Flash stage, select the star_mc clip.
- With the star_mc clip selected, go to the Code Snippets panel and double-click the “Custom Mouse Cursor” snippet from the Actions folder.
- Test the movie once more. Notice that the normal cursor icon is gone and the star_mc clip now moves with your mouse like a custom cursor.
- Close the codesnippets_start.swf file to leave the Flash testing environment and return to the authoring environment.