Table of Contents

16.5 Where's All the Code?

Even for experienced Flash users, locating the code in a movie can sometimes be challenging. Because code can be attached to any frame in any timeline, any button, or any movie clip on stage, it is often lost in a sea of content. Obviously, a highly organized structure and thorough code documentation can save dozens or hundreds of hours over the life span of a project. But if you're faced with a movie that mysteriously seems to be missing important code, open the Actions panel and try these techniques for finding it:

Sometimes even these techniques can fail us. If someone's determined to hide some code, there are lots of places in Flash to do so. For example, an empty clip can be placed far beyond the limits of the Stage, making it nearly impossible to find. Fortunately, when all seems lost, our code isn't�we can always use the Movie Explorer to hunt down any script in a movie. Select Window figs/U2192.gif Movie Explorer for a bird's-eye view of all the assets in the current scene, including any scripts attached to a frame, button, or movie clip. Make sure the Show Action Scripts icon is depressed under the Show menu at the top of the Explorer panel, so that the search includes scripts. You can use the same window to search for text fields containing a certain word. There is no easy way to search the entire movie; you'll need to search each scene separately. Scripts are marked with a blue arrow Actions icon similar to the icons in the Actions panel Toolbox. To filter the display to show only scripts, select the Show Action Scripts icon under the Show menu, and deselect all other icons.


Table of Contents