Applying styles at run time to flex application

November 22, 2007

Applying styles at run time to your flex there are two things to consider
1.defining ur styles in a .css file.
Here u have to define ur styles in a .css file for various controls or anything according to ur need. include them in the same folder.
example:  style1.css
———}  any style definition

2.compile them to generate .swf files.

using adobe flex builder commond prompt compile ur .css file.i.e first copy the .css files to flex builder folder and then at cmd prompt use the command
>mxmlc  style1.css
it generates ur .swf file at the flex builder folder (c:prog file/flex –/style1.swf) now take the generated .swf file to ur flex project folder/bin/ paste it.
now the required .swf files are ready.

Read the rest of this entry »


Tree structure with data from database : “php Programming ” is backend

November 22, 2007

creating Tree structure with data from the database with PHP there are three things to consider i have given  them as points below follow them
1. define a http servive in ur flex application with properties resultFormat and result, including the url (the data from database or program)

<mx:HTTPService id=”newtree” useProxy=”false”  url=”http://wdoserver/kumar/treeread.php”  resultFormat=”e4x” result=”readMe(event)”/>

2. The PHP program which sends data as an xml it is given below, for progrmming write the similar tags in echo it gives out.
<node data=”mybook”>
<node data=”mybook”/>
<node data=”mybook”/>
<node data=”mybook”/>
<node data=”mybook”/>

Read the rest of this entry »

Hello world!

November 22, 2007

Welcome to This is your first post. Edit or delete it and start blogging!

Garbage colleciton of Flex : with Example

November 19, 2007

Flash Player provides built-in garbage collection that frees up memory by destroying
objects that are no longer used. To ensure that the garbage collector destroys your
unused objects, remove all references to that object, including the parent’s reference
to the child.

On containers, you can call the removeChild() or removeChildAt() method to remove
references to child controls that are no longer needed. The following example removes
references to button instances from the myVBox control:


private function destroyButtons(e:Event):void {

You can clear references to unused variables by setting them to null in your ActionScript; for example:

myDataProvider = null

To ensure that destroyed objects are garbage collected, you must also remove event
listeners on them by using the removeEventListener() met