Why haXe to SWC is important for Flex/Flash Developers?

I believe that haXe is the right platform for developing api’s and code libraries. Why haXe? If you use just the haXe core libraries. HaXe Can compile to Javascript by generating a single 1.js file Can compile to Flash 6-8 by generating a single  1.swf file Can compile to Flash 9-10 / Tamarin by generating a single  1.swf file generate optimized integer arithmetic autocast when...

Read More

Stripping HTML Tags using XML

There is a thread going on in flashcoders mailing list about how to stripp the HTML tags in the string. Here is my version to do the same using XML. It can be used to remove specific tags from the given string. Even though we can use flash textField for this purpose (setting the .htmlText property and getting .text property) the following method gives more options and flexibility. [UPDATE]...

Read More

Unable to *continue* with Auto Format!

Beware that auto formatting eats your actionscript some times !!! See the following code for (var i = 0; i<5; i++) { if (i == 2) { continue; } trace(i); //traces 0, 1, 3, 4 (skips 2) } If you apply Auto Format to the code it becomes for (var i = 0; i<5; i++) { if (i == 2) { } trace(i); //traces 0, 1, 2, 3, 4...

Read More

Problem importing sound?

When our flash file becomes big and complex we often face this problem. When we try to import the audio we get “One or more files were not imported because there were problems reading them” even when you are sure that the audio format is flash compatible. Solution? Import the audio into a new blank flash file once done drag the imported audio from this library to your project files...

Read More

Splitting String to Words Array

Now I’m in the process of creating Action Script (or any script) color highlighter in flash. Which can be used in forums to post the ActionScript As and when the user types a property or keyword it will highlight in the specified color. I’m planning to set the .htmlText property every time he types some thing. That is I will find and replace all the keywords with appropriate...

Read More

Working with color HEX & RGB

If you need to convert color values between RGB and HEX you will find the following functions useful. Original post had only ActionScript 1 version and now I have updated it to add ActionScript 3 version as well ActionScript 3.0 ActionScript 1.0 package com.luracast { /** * Set of funtions for handling color values in different format ...

Read More