Just chk This
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; layout="absolute">
<mx:Script>
 <![CDATA[
  import mx.controls.TextArea;
  public var yVal:int=-60;
  public var flag:int=0;
  public function createNewTextbox():void
  {


  var myText:TextArea = new TextArea();
  myText.x=169;
  yVal=yVal+90;
  myText.y=yVal;
  myText.width=800;
  myText.height=60;
  mycanvasID.addChild(myText);
  if (flag<4)
  {
  myText.text="hi";
  flag++;
  }
  else
  {
  myText.text="Hello";
  }

  }
 ]]>
</mx:Script>
 <mx:Canvas id="mycanvasID" x="0" y="0" width="100%" height="100%"
backgroundColor="#CFCDCD">
  <mx:Button x="10" y="0" label="Click Here" click="createNewTextbox()"/>
 </mx:Canvas>

</mx:Application>




On Sat, May 23, 2009 at 10:55 AM, Rahul <[email protected]> wrote:

> Its Very Easy .. Set a flag. Initially make its value "0". On each click
> increment flag's value. Then as you told when it reaches 4, just make the
> myTileWidth.width as per ur requirement..
>
> On Sat, May 23, 2009 at 10:45 AM, Gerald Anto 
> <[email protected]>wrote:
>
>>
>> Hello friends,
>> i set my <mx:tile> control to occupy 4 children in its space(initially
>> i set tilewidth and tile height associated to the parent space)
>> ex
>> tileWidth=myTileList.width/2 tileHeight=myTileList/2.
>> when ever i click a button a new child will be added to myTileList.
>> when it reaches more than 4 child i need to change tileWidth and
>> tileHeight of all child in the myTileList.
>> totally i need 16 children.
>> how it is possible i have done but i havent got expected result.
>> if you have any idea please let me Konw.
>>    Thank you,
>>
>> Thanks&Regards,
>> Gerald Anto Fernando
>>
>>
>> >>
>>
>
>
> --
> Regards
> Rahul
>



-- 
Regards
Rahul

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to