Not finding what you are looking for? Request a recipe!
Because JSON is just a subset of JavaScript objects ExternalInterface can just send these objects as Strings to JavaScript within your browser and the JavaScript interpreter will send an ActionScript Object back to you with the correct types. I have also noticed that this information is parsed faste ...
Looping over all of the items is not very elegant. By using the built in apply method that is on every Function in ActionScript you can do the same thing with out the need to loop over anything. The apply method takes two arguments, the scope which we can pass null and an Array of arguments that is ...
By turning your TextField into a image you will have created a bitmap of your text object and anything can be done to this image. The standard way of doing this is creating a Bitmap object and a BitmapData object and drawing into it. This is a lot to do if you just want to rotate some text around. A ...
The MXMLC has a built in way to handle conditional compiling! It is done by defining constants for the compiler and then referencing these in your code. It has a couple of odd things you have to take into account but it works quite well.