Quantcast
The World Famous 8bitrocket.com Home Page
Moving From Flash AS2 To Flash AS3: Numerical Types Rules Of Use
1/10/2008 by: Steve Fulton
Category: Tutorials, Series:AS2 -> AS3 , Syndication:(XML/RSS)
his seems like a very simple topic, and it should be...for anyone who has programmed in language like C or C++; In those languages, numbers have never been handled with a primitive data type named Number. There have always been several types to use for storing number such as int, long int , float etc. However, in Flash AS1, all variables were treated as "variants". You could store text, numbers, fractions, etc in any variable It was up to the Flash compiler to figure out what you meant any calcuation and do it's best comply. This led to bizarre situations where, for instance, numbers would be concatenated instead of added together, which then led to confusion and unecessary debugging sessions.




GamerBlips: vote it up!
Questions? Comments? Email us here: info@8bitrocket.com
Moving From Flash AS2 To Flash AS3: Static vs. Const
1/9/2008 by: Steve Fulton
Category: Tutorials, Series:AS2 -> AS3 , Syndication:(XML/RSS)
n Flash AS1 and AS2 there was no support for constants. A constant (usually designed with const) is a variable that represents a value that never changes. At first, this sounds fairly useless. Why would you want a variable that never changes? Isn't a variable, by it's very definition supposed to change? However, constants come in very handy...



GamerBlips: vote it up!
Questions? Comments? Email us here: info@8bitrocket.com
Moving From Flash AS2 To Flash AS3: Packages
1/8/2008 by: Steve Fulton
Category: Tutorials, Series:AS2 -> AS3 , Syndication:(XML/RSS)

(Note: I'm converting my Flash game "Spin City" from AS2 to AS3 so it can be reskinned for another project. I've decided to document this activity in a series of tutorials so they might benefit anyone else who is going through the same development process)

I've never been a huge fan of packages for my code. I'm not sure why, because I have pretty much grasped onto every other piece of Object Oriented methodology. For Some reason though, the use of packages has eluded me. Of course, I have referenced them to include other people's code and our own common libraries, but I've never felt the need to use them myself.

To work in Flash AS3 wth classes, packages are required. So let't take a quick look at packages in Flash AS2 and see how they relate to Flash AS3.




GamerBlips: vote it up!
Questions? Comments? Email us here: info@8bitrocket.com
Read More Blog Entries


Questions? Comments?
For more information, contact: info@8bitrocket.com