ActionScript
Forums
PHP
Meta
Category Archives: ActionScript
Calculate date difference in AS
Calculating how many days are left to a future date is very simple (both in AS2 and AS3). This is how you can calculate how many days are left for new year: PLAIN TEXT Actionscript: var today:Date = new Date(); … Continue reading
Posted in ActionScript, Flash, Tutorial
Leave a comment
Creating a SWC with FlashDevelop
In order to create a SWC using FlashDevelop you can use the ExportSWC plugin. This makes the process really simple. I was wondering how I could create a SWC like the one available in the AS3 Core Lib for example. … Continue reading
Posted in AS3, ActionScript, Flash, FlashDevelop, Tutorial
Leave a comment
Animated MovieClip on MOUSE_OVER, MOUSE_OUT
If you want to have better looking animations in buttons, you don't use a Button, you use a MovieClip. This means that you'll have to use some code to control the MovieClip. Play it forwards … Continue reading
Posted in AS3, ActionScript, Flash, Tutorial
Leave a comment
Apply and Remove tint to an Object in AS3
If you want to tint an object and then revert to its original color, you can use setTint() passing 0 in the second parameter, e.g.: PLAIN TEXT Actionscript: c.setTint (0xFF0000, 0);
Posted in AS3, ActionScript, Flash
Leave a comment
convert Decimal to Hex and back
In Flash (AS3), when you store a colour in a variable, although the 0x specifies an hexadecimal value, the variable will be of type uint (unsigned integer). PLAIN TEXT Actionscript: var c:uint = 0xFFFFFF; This means that Flash, internally, converts … Continue reading
Posted in ActionScript
2 Comments