Optimizing ActionScript


show more Optimizing ActionScript 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 ...

Optimizing ActionScript

Optimizing your ActionScript code is just as important as optimizing your graphics. That's what I want to do now. I am going to go into my ActionScript code. Here it is, and quite frankly, there's a lot going on. I need to optimize this, and what that means is I need to go ahead and look at ways that I can condense down some of this functionality, whether there's enter frames that can be condensed down maybe into one enter frame, or if there are for loops that can be condensed down as well.

I also need to take a look at expensive processes, and when I say expensive processes, I mean, more than anything, enter frame events. Okay. So I am going to go ahead and take a look at my enter frame events, and I want to make sure there are not a lot of them, for one, okay. So as I scroll down, about line 62 there's this Enter_Frame game loop, and this constantly checks the game state we are in. And that's fine, but what I am going to do is I am going to select this word and I am...

Optimizing ActionScript
Video duration: 6m 19s 3h 35m Intermediate

Viewers:

Optimizing ActionScript 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 ...