ActionScript
Forums
PHP
Meta
Category Archives: ActionScript
Passing URL variables into Flash using FlashVars and SWFObject – Tutorial @ FlashKit
A new tutorial – Passing URL variables into Flash using FlashVars and SWFObject – is now available at FlashKit. You’ll learn how to pass variables from the URL into Flash, using SWFObject and FlashVars. The tutorial is available here.
Posted in ActionScript, AS3, Tutorial
Leave a comment
Listing image files in a directory with PHP – Tutorial @ FlashKit
A new tutorial – Listing image files in a directory with PHP – is now available at FlashKit. You’ll learn how to read the contents of a folder full of images and to create XML dynamically using PHP. Then, you’ll … Continue reading
Posted in ActionScript, AS3, PHP, Tutorial
Leave a comment
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
Comments Off
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 ActionScript, AS3, Flash, FlashDevelop, Tutorial
Comments Off
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 ActionScript, AS3, Flash, Tutorial
Comments Off
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 ActionScript, AS3, Flash
Comments Off
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
3 Comments