Ok… So they don’t have anything to do with each other directly. But they do in my case! Since I love Gran Turismo and Actionscript… and although I can’t get better at Gran Turismo by using AS3, I can get better at AS3 while playing Gran Turismo (*this is highly speculative, and probably false considering I’ve just been putting quick hax apps with the IDE… ohh did I mention I hate the IDE… well I found a use for it… ). Because of my surgery (Spinal Fusion… it was awesome) I have a bit of time to lay on my back and stare at screens…. here’s a result:
11
2009
Stratalogica
So let’s talk about spaceships… I mean Stratalogica.

Stratalogica has been my life for about the past year. It is a teaching tool for geography and history wrapped around Google Earth (for short). Roundarch the company I work for teamed up with Nystrom a division of Herff-Jones, to try and create a new platform to interact with their content. Long story short we came up with Stratalogica.
08
2009
switch(case)
So looking through my logs, I realized a ton of users have gotten to my blog by searching “flash switch case”. And well I figured I’ll give all of you who made it here, a little bit of help. First I’ll add a button directly to the Actionscript 3 API reference to the buttons on my main nav. And the rest of this article will consist on giving you a few basic examples on how to use it. Sorry for the delay, I should’ve done this a long time ago!
Adobe AS3 Languange Reference – Switch Statement
Switch statement can be quite useful, from shrinking down your navigation controls into one event listener, to determining something useful about a user’s environment. Now just because my blog is named switch case, I don’t mean to tell you that its the end all for statements. With good coding practices you will learn when it is more useful to a switch statement as opposed to just some if…else statement… but they kinda do the same thing… compare one thing to another, then return execute some piece of code to make your life better. The big difference is switch only tests for a specific case, so you cant really feed it a range (well there’s hacks, but then you’re not really testing against the expression you’re actually trying to evaluate. and its just plain dumb… unless you are that one in a million case, else just stick to the basics).



















