Using Compiler Argument -keep-generated-actionscript in Flex Builder Project to view/study These Automatically Generated Classes

As you know, all MXML files are converted to ActionScript Classes which are later compiled in SWF file. If you want to view / study these automatically generated classes, you can use Compiler Argument -keep-generated-actionscript in Flex Builder Project.

In Flex Builder navigate to Project > Properties > Flex Compiler > Additional compiler arguments and add following configuration: -keep-generated-actionscript Continue reading “Using Compiler Argument -keep-generated-actionscript in Flex Builder Project to view/study These Automatically Generated Classes”

GUTTERSHARK–an Actionscript 3 library that pushes some simple conventions on you

This one is not Flex API and is targeted towards ActionScript. The main features which IĀ  have found here is handling Cache, NetConnection Manager, CPU speed estimation .And also it provides a way to override theirĀ  API.

Continue reading “GUTTERSHARK–an Actionscript 3 library that pushes some simple conventions on you”

The Fastest Way To Draw Pixels In ActionScript 3

ActionScript 3 can display a dynamically generated bitmap, in which the RGB values of each pixel are computed by code.It can be help us to render 3D scenes, process video and images, and create other effects.In order to draw a dynamically animated bitmap, it may be necessary to write to every pixel in the BitmapData each frame.We can call setPixel once for every pixel or build an appropriatedly sized ByteArray to do it.But which is the fastest?
Continue reading “The Fastest Way To Draw Pixels In ActionScript 3”

How to create a button and assign a value to a text box within it in actionscript?

Can we create an instance of a button from the library dynamically?

If you have already a button Symbol in your Library with the linkageName buttonSymbol just attach the button on Stage and asign values to it via the button’s name.

The full code:

this.attachMovie(“buttonSymbol”, “btn”, 1);
this.btn.txtField.text = “a Text”;

Continue reading “How to create a button and assign a value to a text box within it in actionscript?”