Flash

AIR 1.5 Quick Tips: Getting the SystemTrayIcon.menu Reference

Hey all, have you been getting this crazy error message when trying to access the NativeApplication.nativeApplication.icon.menu on windows?: 1119: Access of possibly undefined property menu through a reference with static type flash.desktop:InteractiveIcon. Everything in the livedocs leaves me to believe that a reference like that would work on windows machines, but it doesn’t. I...

read more

Rapid Prototyping

Some of you may be familiar with rapid prototyping. It is a concept i learnt from the Experimental gameplay project, specifically this article by Kyle Gabler, Kyle Gray (2D Boy, World of Goo), Matt Kucic, Shalin Shodhan. Rapid Prototyping is a great way to develop new ideas quickly. I use rapid prototyping all the time whether it be in AS3 or Javascript, a game or an application. Whilst game and...

read more

AS3 Basics: Loops in Actionscript 3 Part 1 For Loops

Hey Wuup readers. After going through all my older AS3 Basics articles, I found that most of them didn’t really go over the core elements. So in order to rectify the problem, I’ve decided that it’s time to flesh out this area a little. I’m by no means an expert on the language – unless you count 3 years experience as expert material – But I do know what does what,...

read more

AS3: How to Run Applications from a Flash Projector EXE with Actionscript 3 and Batch Files

So i’ve been writing some CD launchers recently with some handy tools on. One thing i had major trouble with was getting a Projector .exe to run programs from sub directorys. Luckily i figured it out so heres how… First in your CD/DVD root directory place a folder named “fscommand” this is the only folder which the projector will be able to see (from my experience,...

read more

AS3 Handy Snippets: Handy Regular Expressions

Hey everyone. This week, I’m bringing you some handy regular expression snippets I use quite frequently. If you are unfamiliar with regular expressions, think of them as a different language that you use within ActionScript. I’m not going to go into detail about Regular Expressions, there’s far better documentation on the Adobe LiveDocs here for the object & here for regular...

read more

AS3 Basics: Disable Mouse Events on a Movieclip (pass through mouse events) in Actionscript 3

Hey all, in accordance with my new article writing regime, heres an article about a problem i came into contact with today. I was working on a project for a client, i needed to have a watermark placed over an interactive area which used mouse events. Only the problem is that the watermark is a Movieclip (so i could use blend modes) which interferes with the underlying Movieclip’s mouse...

read more

AS3 Basics: How to load an external image file using Actionscript 3

Hey all. It’s been a long time since i’ve written. hopefully i’ll be at least bringing you something each week from now on, instead of say when i feel like Anyways… Heres how to load an external file into an SWF. var myLoader:Loader = new Loader(); // create a new instance of the 'Loader' class var myURLRequest:URLRequest = new URLRequest("image.jpg"); // create a...

read more

AS3 Quick Tips: Datagrid: How to Extract Data From a Single Cell in a DataGrid Component

Recently i’ve been messing about with Flash’s built in components, for the most part they are self explanatory and easy enough to figure out from Adobes docs. Recently however i have had to use editable DataGrids in a form type scenario, I could create and display a DataGrid fine, but when it came to collect the data from it? I was completely stumped, Mainly because DataGrids utilize...

read more

AS3 Basics: If Statements

Ok so after about a month of Alan nagging me to post something,  i’ve decided to write more about the core basics of the AS3 Language, Mainly because my previous “AS3 Basics” tutorials actually covered advanced topics. So each week i’ve set myself the task of explaining a core AS3 element, be it a class or language basics. IF Statements So if your just starting out in...

read more

AS3 Basics: Creating Random BitmapData in Actionscript 3

Ah everybody loves bitmaps, without them the web would be boring, well kinda. Anyway the following code will create the movie bellow. This movie creates a bitmapdata object and randomise the colour of each pixel at runtime. And heres the code to do it! step by step. (Skip to the bottom if you just want the source ) // initial width and height of our new bitmapData var bitWidth:int = 100; var...

read more