While transitioning to AS3 is a massive must as people have regarded, some developers (mostly new) just want to or is forced to get stuck with AS2. So if you’re working on a AS2 project or lower, here some common things you should consider checking at the start of your project.
Some common but usually neglected things you might not want but your game might have:
- The everlasting suggestion of “avoid directly referencing
_root“. - Yellow boxes appear (on buttons/movieclips) when pressing Tab.
- Cheating by pressing Space when the yellow boxes focus on buttons/movieclips.
- Cheating by right clicking (shows the context menu, a cheat for some game genres).
- Cheating/altering game play/screens by pressing forward, back, etc from the context menu.
_root or no _root

_root ?
As you might have read a dozen or countless times, it is highly recommended to not directly call _root within the project, although using _root is not necessarily wrong. These developers come to use _root as a hack way of referencing an absolute path to their objects. If you are building an independent system, prototypes, does not consider expansion/addons and will never be a part of a larger system then it would be fine to use _root as a hacky way. But if your work is part of a larger system or the like consider having to add in various (most of the time, 3rd party) extensions, plugins, services, APIs (application programming interfaces), SDKs (software development kits), or anything similar in it’s purpose then you’ll be in for some serious headaches. Most notable of these are those that wrap your game within another swf file. You might be able to face serious issues and problems varying from sounds not playing/missing, disposition world objects, localtoGlobal/globaltoLocal miscalculations, undefined object property, sprites (movieclips) not following the expected position and behavior, wrongly positioned custom cursors and a lot more. [ Read more... ]










•