How to work on Grid layout flex example

<![CDATA[
import mx.controls.Alert;
import mx.collections.ArrayCollection;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import mx.utils.ObjectUtil;
import mx.charts.HitData;
import mx.controls.Image;
import mx.controls.Label;
import mx.containers.HBox;
import mx.controls.*;

[Bindable]
public var tmpQuery:String = " select * from inactive_active_value order by id ";

[Bindable]
public var arrDatabases:ArrayCollection = new ArrayCollection();

[Bindable]
public var dataFirst:Array = [0,2,1,1,3,3,3,3,2,2,15,15,15,35,15,30,10,20,10,10,10];

[Bindable]
public var dataSecond:Array = [0,1,1,2,5,0.3,0.1,0.3,0.2,0.5,0.2,0.1,0.1,0.3,0.1,0,0,0,0,0,0,0];

[Bindable]
//public var dataThird:Array = [0,2,1,1,3,3,3,3,2,2,15,15,15,35,15,30,10,20,10,10,10];
public var dataThird:Array = [0,6,1,1,1,1,3,1,1,1,1,4,1,1,1,2,1,3,2,2,10];

/**
This is for initialize components
@param – void
*/
private function init():void
{
InactiveActive_id.getInactiveActiveValue(tmpQuery);
createControlsBoxFirst();
}

public function createControlsBoxFirst():void
{

for(var i:int=1;i10)
{
txtBox.setStyle(“backgroundColor”,”#FF99CC”);
}

//txtBox.text= ” “+arrDatabases.getItemAt(i).toString();
//txtBox.text= ” “+arrDatabases[i][‘inactivedist’].toString();
txtBox.text= ” “+dataFirst[i-1];
myFlow.addChild(txtBox);
}
createControlsBoxSecond();
createControlsBoxThird();

}

public function createControlsBoxSecond():void
{
for(var i:int=1;i= 2 && i <= 5)
{
txtBox.setStyle("backgroundColor","#FF99CC");
}

//txtBox.text= " "+arrDatabases[0]['cmatrisk'].toString();
txtBox.text= " "+dataSecond[i-1];
myFlow1.addChild(txtBox);
}

}

public function createControlsBoxThird():void
{
for(var i:int=1;i 1 && i = 12 && i = 1 && i

<![CDATA[
import mx.controls.Alert;
import mx.collections.ArrayCollection;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import mx.utils.ObjectUtil;
import mx.charts.HitData;
import mx.controls.Image;
import mx.controls.Label;
import mx.containers.HBox;
import mx.controls.*;

[Bindable]
public var tmpQuery:String = " select * from inactive_active_value order by id ";

[Bindable]
public var arrDatabases:ArrayCollection = new ArrayCollection();

[Bindable]
public var dataFirst:Array = [0,2,1,1,3,3,3,3,2,2,15,15,15,35,15,30,10,20,10,10,10];

[Bindable]
public var dataSecond:Array = [0,1,1,2,5,0.3,0.1,0.3,0.2,0.5,0.2,0.1,0.1,0.3,0.1,0,0,0,0,0,0,0];

[Bindable]
//public var dataThird:Array = [0,2,1,1,3,3,3,3,2,2,15,15,15,35,15,30,10,20,10,10,10];
public var dataThird:Array = [0,6,1,1,1,1,3,1,1,1,1,4,1,1,1,2,1,3,2,2,10];

/**
This is for initialize components
@param – void
*/
private function init():void
{
InactiveActive_id.getInactiveActiveValue(tmpQuery);
createControlsBoxFirst();
}

public function createControlsBoxFirst():void
{

for(var i:int=1;i10)
{
txtBox.setStyle(“backgroundColor”,”#FF99CC”);
}

//txtBox.text= ” “+arrDatabases.getItemAt(i).toString();
//txtBox.text= ” “+arrDatabases[i][‘inactivedist’].toString();
txtBox.text= ” “+dataFirst[i-1];
myFlow.addChild(txtBox);
}
createControlsBoxSecond();
createControlsBoxThird();

}

public function createControlsBoxSecond():void
{
for(var i:int=1;i= 2 && i <= 5)
{
txtBox.setStyle("backgroundColor","#FF99CC");
}

//txtBox.text= " "+arrDatabases[0]['cmatrisk'].toString();
txtBox.text= " "+dataSecond[i-1];
myFlow1.addChild(txtBox);
}

}

public function createControlsBoxThird():void
{
for(var i:int=1;i 1 && i = 12 && i = 1 && i

About ashokabhat

I am a C,C ,JAVA,Adobe Flex,.NET Programmer Currently working as a Software Developer
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s