Watching:

Adding code snippets


show more Adding code snippets provides you with in-depth training on Developer. Taught by Paul Trani as part of the Flash Professional CS5: Creating a Simple Game for Android Devices show less
please wait ...

Adding code snippets

One thing that will really help in development of any project in Flash will be to use the Code Snippets panel. If you go to Window, open up Code Snippets, notice that there are already these folders filled with all these great Action- Script code snippets that you can use in your project. And for this title and this game, what I'm going to do is I am going to go ahead and load in some code snippets that I already have prepared. And this Code Snippet file is available for free on the lynda.com web site, associated with this course.

So if you select the flyout menu, go to Import Code Snippets XML. And inside of the Assets folder, there's a Code Snippets folder, and just select MobileGame.xml. So with that file selected, click Open, and you can see that it loads in this new folder called Mobile Game, and it's filled with code snippets. Very powerful, and I can add any one of these easily, just by double-clicking on it.

As I do that, it adds that code snippet to the Actions layer in my Timeline. Okay, so I have just added this ActionScript code snippet. I'll just delete that because, again, I don't need it right now. But really using the Code Snippets panel it's as simple as adding the code snippet and customizing it specifically for your use. But I'd say Flash Professional CS5 is all set up, and I am actually to further the development of this game.

Adding code snippets
Video duration: 1m 36s 3h 35m Intermediate

Viewers:

Adding code snippets provides you with in-depth training on Developer. Taught by Paul Trani as part of the Flash Professional CS5: Creating a Simple Game for Android Devices

please wait ...