Thanks Mac,
You know, I just assumed it would work in Flex. In Flash I used to be 
able to call redraw() right after setting the vPosition property and it 
would work ok. I don't suppose there is a simple one liner that does the 
job in Flex??
Yours truly,
-Brian

vardpenguin wrote:

>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
>
>
>
> 
>
>
>
>  
>


-- 
______________________________________________________________________
Brian Lesser
Assistant Director, Teaching and Technology Support
Computing and Communications Services
Ryerson University
350 Victoria St.
Toronto, Ontario                   Phone: (416) 979-5000 ext. 6835
M5B 2K3                            Fax: (416) 979-5220
Office: AB48D                      E-mail: [EMAIL PROTECTED]
(Enter through LB66)               Web: http://www.ryerson.ca/~blesser
______________________________________________________________________



--
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