just change for loop,
for(var i : Number =myArray.length; i<= 0 ; i--)

2008/8/11 markflex2007 <[EMAIL PROTECTED]>

>   Hi,
>
> I did the following test, and textarea display order is top to bottom
> so the result is when I run the test.
>
> one
> two
> three
>
> May I change the textarea display to "bottom to top " and the result is
>
> three
> two
> one
>
> Thanks for help
>
> Mark
>
> PS test code:
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
> layout="absolute" creationComplete="initapp()">
>
> <mx:Script>
> <![CDATA[
>
> private var myArray:Array = ["one", "two", "three"];
>
> private function initapp():void{
>
>
> for(var i : Number = 0; i< myArray.length ; i++){
>
> ta1.text = ta1.text + myArray[i] + "\n\n";
>
> }
>
> }
> ]]>
> </mx:Script>
> <mx:TextArea id="ta1" x="105" y="150" height="118" width="207"/>
>
> </mx:Application>
>
>  
>

Reply via email to