Posts Tagged "Actionscript 3.0"

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

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 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

AS3 Quick Tips: Change Movie Quality with Actionscript 3

Hi all just thought it’d be good to tell ye all how to change the quality of your movie with actionscript so it changes on runtime. Quick Code: stage.quality = StageQuality.LOW; stage.quality = StageQuality.MEDIUM; stage.quality = StageQuality.BEST; Simply paste one of these into your actions layer and huzzar! the quality will be altered! Peace...

read more

AS3 Math Advanced: Add Forward Movement Based on Angle

Hello, So i finally dragged myself away from playing even more games (completed Dead Space finally!) to bring you a follow up to my previous tutorial BLAHLINK. This Tutorial will show you how to add forward momentum in the correct direction based on the angle of the movieclip player. first download the Source Files from my last tutorial. We will use this as a base. Now change the update...

read more

AS3 Math Basics: Add Velocity Physics to A Movie Clip

Hello again, Today i will following up on my previous tutorial LINK and will be teaching you how to add forward movement to your movieclip and left right controls (kinda like Asteroids). If you don’t have the original source you can download it HERE. First we declare and define some lovely variables. These will be our starting velocity values, one for the X axis and one for the Y...

read more