• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Externalize Actionscript

Let’s say you have several lengthy scripts that you use in multiple Flash documents. Updating them can be a hassle because you have to open each file, locate the script, and make the changes. Here’s a way you can actually keep all your nifty scripts in their own documents and never actually place them in Flash. Doing this will let you create your own library of scripts, share them as you like, and make changes to one location when necessary. To do that, either copy and paste an existing script or write a new one into a text file and save it with a .as extension. You can now put the following line of code on a keyframe in your document.

#include "yourfilenamehere.as"


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint