Creating Unique Random Response

Whether we are developing a game or e-learning application we need to create random response which is unique and not repeating.

Say for example if you are developing a Quiz application where you have 10 questions, you want to pick the question randomly, but the same question should not be repeated.

Here is a […]

By |December 5th, 2002|Blog, Code, Flash MX|0 Comments

String.changeCase(Title || Sentence || Toggle).

ActionScript Standard Library project is really picking up. For those who are hearing it for the first time, the ActionScript Standard Library is a collection of ActionScript classes and libraries that aims to create and provide a standard library of functionality to ActionScript. ASL is an Open Source initiative by Mike […]

By |November 2nd, 2002|Blog, Code, Flash MX|0 Comments

Rendering HTML in FlashMX

Rendering of HTML text in browsers and flash text box is different in the fact that;
spaces, tabs and line brakes are ignored in browsers but are rendered in flash text box.
I faced this problem in my reference panel application and wrote the following script as a solution.

[UPDATE] included the ActionScript 3 version as well […]

By |October 27th, 2002|Blog, Code, Flash MX|0 Comments

Object.copyProperties(toObj, PropertyStr, exclude?)

When you need to copy only certain properties of one object to another object, this code will be useful.
I’ve also given an example on how to use it. take a look at it here

By |October 19th, 2002|Blog, Code, Flash MX|0 Comments

Object to ActionScript Utility

Many times we need this!
We create objects and arrays and modify them through code to get them as we want. Finally the object is ready but every time it is created using the same complex procedure when the SWF runs.
This affects the performance to some extent.
Also sometimes we need to see what’s […]

By |October 17th, 2002|Blog, Code, Flash MX|0 Comments

Cloning objects

In ActionScript we cannot pass objects by value. It always passes objects by reference. If you need to create a perfect copy of an object you can make use of the following code. I have modified Flash Guru’s clone with support for Array Objects

[UPDATE] included the ActionScript 3 version as well 🙂 […]

By |September 19th, 2002|Blog, Code, Flash MX|0 Comments