Tagged with 'AS2'
Snippets
-
Format price with ActionScript 2.0 by vixiom
ActionScript 2.0 biggest weakness is lack of support for regular expressions. This makes relatively simple things like formatting price (the American way) a bit of a chore. Here’s a solution for those not quite ready to make all their users switch to Flash Player 9.
Save as Favorite | Tags: AS2, price, format, string
-
Calculate if a Netmask is valid (AS2) by tomo_atlacatl
-
Purge an array of an object by Schyfis
I use this code in almost every game I make. It removes all instances of an object from a given array and returns a new array. Feel free to use it, it's really simple.
Save as Favorite | Tags: AS2, array, purge
-
Randomize by Schyfis
A really simple function that returns a random number between a given number and the negative of the given number. It's great for actionscripted game effects like positioning a ship's thrust. Basically, it saves you from writing random(x)-random(x) every time.
Save as Favorite | Tags: random, randomize, AS2
Scraps
-
ActionScript Animation Library Tweener by vixiom
In layman's terms, Tweener helps you move things around on the screen using only code, instead of the timeline. The general idea of a tweening Class is that dynamic animation and transitions (created by code) are easier to maintain and control, and more stable than animation based on the regular Flash timeline, since you can control it by time rather than by frames.
Save as Favorite | Tags: animation, AS3, AS2, tweener, transitions, library
-
ActionScript 2.0 Flash Remoting with Flash CS3 by vixiom
The fix is to copy the needed packages from your Flash 8 install to a Classpath that Flash CS3 is looking for (best to make a new one rather than dump them with the CS3 classes). The old ones live in Macromedia Flash 8 -> First Run -> Classes -> mx and the packages you need are data, remoting, rpc, and services
Save as Favorite | Tags: AS2, remoting, CS3
-
Gaia a framework for Flash development by vixiom
Gaia is targeted at anyone who develops Flash sites. It provides solutions to the challenges and repeated tasks we all face with front-end Flash site development, such as navigation, transitions, preloading, asset management, site structure and deep linking. It provides speed and flexibility in your workflow and a simple API that gives you access to its powerful features. Most Flash frameworks are back-end frameworks, or require senior level coding experience to use. Gaia is different because it focuses on front-end development. It is easy enough for novice Flash developers, yet powerful enough that advanced coders can use it without feeling limited. Gaia is tightly focused on helping you do your job without getting in your way. It is flexible enough to enable you to work the way you like to work without forcing you to change your style. Whether you write everything in strictly-typed AS2 classes, hack AS1 on the timeline or anywhere in between, Gaia helps you get the job done.
Save as Favorite | Tags: library, framework, AS2, AS1


