AS2 to AS3 Baby Steps - Part 1 - Intro to AS3

Reynaldo October 31st, 2007

After a long time, I get a chance to post. I have been bombarded by really cool innovative projects over at iChameloungroup. Lots of papervision for this new hush-hush micro site which I still can’t talk about. Anyways, I wanted to share my thoughts on transitioning from AS2 to AS3.

Basically, the language has become fully object oriented in my opinion. True, it takes more lines of code to do certain things now than in AS2 but the language is much more organized. It’s also true that there are newer ways of doing old and simple things, bottom line is it’s fluent and easy to comprehend. For example:

Something as simple as opening a link in a browser which used to look like this:

getURL("www.reynaldocolumna.com", "_blank");

Now looks like this:

navigateToURL(new URLRequest("http://www.reynaldocolumna.com"), "_blank");

“getURL” is now “URLRequest” and instead of accepting a string value it accepts a URLRequest object and the second param works just as before.

I guess it’s just gonna take some getting used to ;)

Trackback URI | Comments RSS

Leave a Reply

  • Friends

  • Props

  • Donations

  • website counter
  • Archives

  • Feedburner