You're doing it correctly, the problem is that when you set the
vPosition, the 'msg' string has not been fully loaded into the
textArea yet.

You need to do some sort of check to make sure the textArea content 
change has been completed, or wait a few moments before you set vPosition.

-Mac


--- In [email protected], Brian Lesser <[EMAIL PROTECTED]> wrote:
>
> Possibly really dumb question but shouldn't this scroll a TextArea to 
> the bottom:
> 
> public function writeln(msg:String):void{
>        traceArea.text += msg + "\n";
>        traceArea.vPosition = traceArea.maxVPosition;
> }
> 
> Where traceArea is a TextArea.
> 
> It doesn't seem to work for me in Flex Beta 1.
> 
> Yours truly,
> -Brian
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to