RE: [flexcoders] Flex 2.0 beta TextArea question
These were examples from someone else that I was trying to help, but that doesn't matter. You're explanation is correct, except for one detail... when you say "including redrawing if need be". Calling validateNow() doesn't cause the player to redraw during the call, although it may cause the player to redraw later. The player always does delayed drawing that isn't in the middle of any ActionScript method. What validateNow() DOES do is force the methods validateProperties(), validateSize(), and validateDisplayList() to be called immediately if they would be called later. The validateProperties() method calls commitProperties(), and a TextArea's commitProperties() method sets the 'text' into its internal TextField, which then causes maxVPosition to be correct. - Gordon From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mac Martine Sent: Thursday, February 09, 2006 10:24 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex 2.0 beta TextArea question If I understand you correctly, here’s the difference between your examples… In your example where you set the vPosition from a Button: private function setLogVPosition():void { txtLog.vPosition = txtLog.maxVPosition; } …the text in the text area was already set and fully drawn prior to setting the scroll position . All you are doing here is setting the vPosition on the text that is currently (and already) loaded into the textArea.. so there’s no problem. In your other example, you were first changing the text of the textArea, and on the next line you set the vPosition. In this case, by the time you set the vPosition, the textArea had not fully updated with it’s new text. So, by calling validateNow() in between changing the textArea contents and setting the vPosition, you are telling the textArea to perform any necessary property updates, including redrawing if need be. So then by the time you set the vPosition, the textArea is ready to go. Let me know if that doesn’t clear things up. -Mac From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Gordon Smith Sent: Thursday, February 09, 2006 6:37 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex 2.0 beta TextArea question Sorry, I'm not following you. If you can be more explicit about what did and didn't work (i.e., what's in the body of the function, and how you call it), I can probably explain what's going on. - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jonas Windey Sent: Thursday, February 09, 2006 1:26 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex 2.0 beta TextArea question Thanks, validateNow() did the trick. Still weird though that calling the same function from a button did the event, but from code didn't work. Probably because all client-events trigger the validateNow() function automatically? -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Gordon Smith Sent: donderdag 9 februari 2006 8:29 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex 2.0 beta TextArea question There should be no need for callLater() or a Timer. These are workarounds from Flex 1.X that we want to banish in Flex 2. Mac Martine wrote: > I believe you will find a detailed answer in the thread > from Feb 1 with > the Subject: > [flexcoders] Scrolling a TextArea to the bottom? This thread explained that setting a property like the 'text' of a TextArea does not immediately update other properties such as maxVPosition; by default this happens latter, for performance reasons. However, you can force all properties to update immediately by calling validateNow() on a UIComponent. So if you set the text, call validateNow(), and then set the vPosition to the maxVPosition, it should scroll to the bottom. If there are problem with making this work, please file bugs. - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Manish Jethani Sent: Wednesday, February 08, 2006 12:10 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex 2.0 beta TextArea question On 2/8/06, Manish Jethani <[EMAIL PROTECTED]> wrote: > Okay, the problem is that the TextArea's maxVPosition is 0 even after > the text is set. The new value of maxVPosition is calculated only on > the next screen update. . and the solution for now is to use callLater() or a timer or something. -- 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 -- Flexcoders Mailing List FAQ: http://g
RE: [flexcoders] Flex 2.0 beta TextArea question
If I understand you correctly, here’s the difference between your examples… In your example where you set the vPosition from a Button: private function setLogVPosition():void { txtLog.vPosition = txtLog.maxVPosition; } …the text in the text area was already set and fully drawn prior to setting the scroll position . All you are doing here is setting the vPosition on the text that is currently (and already) loaded into the textArea.. so there’s no problem. In your other example, you were first changing the text of the textArea, and on the next line you set the vPosition. In this case, by the time you set the vPosition, the textArea had not fully updated with it’s new text. So, by calling validateNow() in between changing the textArea contents and setting the vPosition, you are telling the textArea to perform any necessary property updates, including redrawing if need be. So then by the time you set the vPosition, the textArea is ready to go. Let me know if that doesn’t clear things up. -Mac From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Gordon Smith Sent: Thursday, February 09, 2006 6:37 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex 2.0 beta TextArea question Sorry, I'm not following you. If you can be more explicit about what did and didn't work (i.e., what's in the body of the function, and how you call it), I can probably explain what's going on. - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jonas Windey Sent: Thursday, February 09, 2006 1:26 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex 2.0 beta TextArea question Thanks, validateNow() did the trick. Still weird though that calling the same function from a button did the event, but from code didn't work. Probably because all client-events trigger the validateNow() function automatically? -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Gordon Smith Sent: donderdag 9 februari 2006 8:29 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex 2.0 beta TextArea question There should be no need for callLater() or a Timer. These are workarounds from Flex 1.X that we want to banish in Flex 2. Mac Martine wrote: > I believe you will find a detailed answer in the thread > from Feb 1 with > the Subject: > [flexcoders] Scrolling a TextArea to the bottom? This thread explained that setting a property like the 'text' of a TextArea does not immediately update other properties such as maxVPosition; by default this happens latter, for performance reasons. However, you can force all properties to update immediately by calling validateNow() on a UIComponent. So if you set the text, call validateNow(), and then set the vPosition to the maxVPosition, it should scroll to the bottom. If there are problem with making this work, please file bugs. - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Manish Jethani Sent: Wednesday, February 08, 2006 12:10 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex 2.0 beta TextArea question On 2/8/06, Manish Jethani <[EMAIL PROTECTED]> wrote: > Okay, the problem is that the TextArea's maxVPosition is 0 even after > the text is set. The new value of maxVPosition is calculated only on > the next screen update. . and the solution for now is to use callLater() or a timer or something. -- 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 -- 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 -- 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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web.
RE: [flexcoders] Flex 2.0 beta TextArea question
Sorry, I'm not following you. If you can be more explicit about what did and didn't work (i.e., what's in the body of the function, and how you call it), I can probably explain what's going on. - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonas Windey Sent: Thursday, February 09, 2006 1:26 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex 2.0 beta TextArea question Thanks, validateNow() did the trick. Still weird though that calling the same function from a button did the event, but from code didn't work. Probably because all client-events trigger the validateNow() function automatically? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: donderdag 9 februari 2006 8:29 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex 2.0 beta TextArea question There should be no need for callLater() or a Timer. These are workarounds from Flex 1.X that we want to banish in Flex 2. Mac Martine wrote: > I believe you will find a detailed answer in the thread > from Feb 1 with > the Subject: > [flexcoders] Scrolling a TextArea to the bottom? This thread explained that setting a property like the 'text' of a TextArea does not immediately update other properties such as maxVPosition; by default this happens latter, for performance reasons. However, you can force all properties to update immediately by calling validateNow() on a UIComponent. So if you set the text, call validateNow(), and then set the vPosition to the maxVPosition, it should scroll to the bottom. If there are problem with making this work, please file bugs. - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani Sent: Wednesday, February 08, 2006 12:10 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex 2.0 beta TextArea question On 2/8/06, Manish Jethani <[EMAIL PROTECTED]> wrote: > Okay, the problem is that the TextArea's maxVPosition is 0 even after > the text is set. The new value of maxVPosition is calculated only on > the next screen update. . and the solution for now is to use callLater() or a timer or something. -- 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 -- 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 -- 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 -- 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/
RE: [flexcoders] Flex 2.0 beta TextArea question
Thanks, validateNow() did the trick. Still weird though that calling the same function from a button did the event, but from code didn't work. Probably because all client-events trigger the validateNow() function automatically? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: donderdag 9 februari 2006 8:29 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex 2.0 beta TextArea question There should be no need for callLater() or a Timer. These are workarounds from Flex 1.X that we want to banish in Flex 2. Mac Martine wrote: > I believe you will find a detailed answer in the thread > from Feb 1 with > the Subject: > [flexcoders] Scrolling a TextArea to the bottom? This thread explained that setting a property like the 'text' of a TextArea does not immediately update other properties such as maxVPosition; by default this happens latter, for performance reasons. However, you can force all properties to update immediately by calling validateNow() on a UIComponent. So if you set the text, call validateNow(), and then set the vPosition to the maxVPosition, it should scroll to the bottom. If there are problem with making this work, please file bugs. - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani Sent: Wednesday, February 08, 2006 12:10 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex 2.0 beta TextArea question On 2/8/06, Manish Jethani <[EMAIL PROTECTED]> wrote: > Okay, the problem is that the TextArea's maxVPosition is 0 even after > the text is set. The new value of maxVPosition is calculated only on > the next screen update. . and the solution for now is to use callLater() or a timer or something. -- 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 -- 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 -- 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/
RE: [flexcoders] Flex 2.0 beta TextArea question
There should be no need for callLater() or a Timer. These are workarounds from Flex 1.X that we want to banish in Flex 2. Mac Martine wrote: > I believe you will find a detailed answer in the thread > from Feb 1 with > the Subject: > [flexcoders] Scrolling a TextArea to the bottom? This thread explained that setting a property like the 'text' of a TextArea does not immediately update other properties such as maxVPosition; by default this happens latter, for performance reasons. However, you can force all properties to update immediately by calling validateNow() on a UIComponent. So if you set the text, call validateNow(), and then set the vPosition to the maxVPosition, it should scroll to the bottom. If there are problem with making this work, please file bugs. - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani Sent: Wednesday, February 08, 2006 12:10 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex 2.0 beta TextArea question On 2/8/06, Manish Jethani <[EMAIL PROTECTED]> wrote: > Okay, the problem is that the TextArea's maxVPosition is 0 even after > the text is set. The new value of maxVPosition is calculated only on > the next screen update. ... and the solution for now is to use callLater() or a timer or something. -- 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 -- 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/
RE: [flexcoders] Flex 2.0 beta TextArea question
Hi ! Please let me know if anybody is looking for on-site long term contract as Flex developer. Thanks PoojaJonas Windey <[EMAIL PROTECTED]> wrote: Yea, that example works too for me, I think the problem is somewhere else.private function setLogVPosition():void{ txtLog.vPosition = txtLog.maxVPosition; }If I trigger this function on a button click, it worksBut I want to use it in a function that changes the txtLog's text, likethis:private function socketDataHandler(event:ProgressEvent):void { txtLog.text += "\n" + oSocket.readUTFBytes(oSocket.bytesAvailable); setLogVPosition();}And this one doesn't work. It sets the text with the correct data, but itcan't set the VPosition. It seems it has to be wired to some clientsideevent, and can't be triggered from code. Is that correct?-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of Manish JethaniSent: dinsdag 7 februari 2006 19:29To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Flex 2.0 beta TextArea questionOn 2/7/06, Jonas Windey <[EMAIL PROTECTED]> wrote:>> How would I set the scrollPosition of a textarea to it's maximum position?I'm trying to create an msn-like socket application, and need to have mytextArea scrolled to the lowest position.>> I tried txtLog.vPosition = txtLog.maxVPosition; and txtLog.vPosition =txtLog.textField.height, but no luck.This seems to work for me in Beta 1. --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Jiyo cricket on Yahoo! India cricket Yahoo! Messenger Mobile Stay in touch with your buddies all the time. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Flex 2.0 beta TextArea question
On 2/8/06, Manish Jethani <[EMAIL PROTECTED]> wrote: > Okay, the problem is that the TextArea's maxVPosition is 0 even after > the text is set. The new value of maxVPosition is calculated only on > the next screen update. ... and the solution for now is to use callLater() or a timer or something. -- 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/
Re: [flexcoders] Flex 2.0 beta TextArea question
On 2/8/06, Jonas Windey <[EMAIL PROTECTED]> wrote: > Yea, that example works too for me, I think the problem is somewhere else. Okay, the problem is that the TextArea's maxVPosition is 0 even after the text is set. The new value of maxVPosition is calculated only on the next screen update. Here's a simplified test case: http://www.macromedia.com/2005/mxml";> I thought we'd solved this problem. Somebody should log a bug. -- 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/
RE: [flexcoders] Flex 2.0 beta TextArea question
I believe you will find a detailed answer in the thread from Feb 1 with the Subject: [flexcoders] Scrolling a TextArea to the bottom? From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jonas Windey Sent: Wednesday, February 08, 2006 1:08 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex 2.0 beta TextArea question Yea, that example works too for me, I think the problem is somewhere else. private function setLogVPosition():void { txtLog.vPosition = txtLog.maxVPosition; } If I trigger this function on a button click, it works But I want to use it in a function that changes the txtLog's text, like this: private function socketDataHandler(event:ProgressEvent):void { txtLog.text += "\n" + oSocket.readUTFBytes(oSocket.bytesAvailable); setLogVPosition(); } And this one doesn't work. It sets the text with the correct data, but it can't set the VPosition. It seems it has to be wired to some clientside event, and can't be triggered from code. Is that correct? -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Manish Jethani Sent: dinsdag 7 februari 2006 19:29 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex 2.0 beta TextArea question On 2/7/06, Jonas Windey <[EMAIL PROTECTED]> wrote: > > How would I set the scrollPosition of a textarea to it's maximum position? I'm trying to create an msn-like socket application, and need to have my textArea scrolled to the lowest position. > > I tried txtLog.vPosition = txtLog.maxVPosition; and txtLog.vPosition = txtLog.textField.height, but no luck. This seems to work for me in Beta 1. -- 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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Flex 2.0 beta TextArea question
it doesn't have to be wired to clientside code. You should be able to call the function.. What I'm guessing is that its a scoping issue. I think that your socket handler is scoped outside your call. Place a debug breakpoint and open up into debug mode. You should be able to see if that function is even getting called. On 2/8/06, Jonas Windey <[EMAIL PROTECTED]> wrote: Yea, that example works too for me, I think the problem is somewhere else.private function setLogVPosition():void { txtLog.vPosition = txtLog.maxVPosition;}If I trigger this function on a button click, it works But I want to use it in a function that changes the txtLog's text, likethis:private function socketDataHandler(event:ProgressEvent):void{ txtLog.text += "\n" + oSocket.readUTFBytes (oSocket.bytesAvailable); setLogVPosition();}And this one doesn't work. It sets the text with the correct data, but itcan't set the VPosition. It seems it has to be wired to some clientsideevent, and can't be triggered from code. Is that correct? -Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of Manish Jethani Sent: dinsdag 7 februari 2006 19:29To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Flex 2.0 beta TextArea questionOn 2/7/06, Jonas Windey < [EMAIL PROTECTED]> wrote:>> How would I set the scrollPosition of a textarea to it's maximum position?I'm trying to create an msn-like socket application, and need to have mytextArea scrolled to the lowest position. >> I tried txtLog.vPosition = txtLog.maxVPosition; and txtLog.vPosition =txtLog.textField.height, but no luck.This seems to work for me in Beta 1. --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Flex 2.0 beta TextArea question
Yea, that example works too for me, I think the problem is somewhere else. private function setLogVPosition():void { txtLog.vPosition = txtLog.maxVPosition; } If I trigger this function on a button click, it works But I want to use it in a function that changes the txtLog's text, like this: private function socketDataHandler(event:ProgressEvent):void { txtLog.text += "\n" + oSocket.readUTFBytes(oSocket.bytesAvailable); setLogVPosition(); } And this one doesn't work. It sets the text with the correct data, but it can't set the VPosition. It seems it has to be wired to some clientside event, and can't be triggered from code. Is that correct? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani Sent: dinsdag 7 februari 2006 19:29 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex 2.0 beta TextArea question On 2/7/06, Jonas Windey <[EMAIL PROTECTED]> wrote: > > How would I set the scrollPosition of a textarea to it's maximum position? I'm trying to create an msn-like socket application, and need to have my textArea scrolled to the lowest position. > > I tried txtLog.vPosition = txtLog.maxVPosition; and txtLog.vPosition = txtLog.textField.height, but no luck. This seems to work for me in Beta 1. -- 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 -- 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/
Re: [flexcoders] Flex 2.0 beta TextArea question
On 2/7/06, Jonas Windey <[EMAIL PROTECTED]> wrote: > > How would I set the scrollPosition of a textarea to it's maximum position? > I'm trying to create an msn-like socket application, and need to have my > textArea scrolled to the lowest position. > > I tried txtLog.vPosition = txtLog.maxVPosition; and txtLog.vPosition = > txtLog.textField.height, but no luck. This seems to work for me in Beta 1. -- 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/
[flexcoders] Flex 2.0 beta TextArea question
Hi, How would I set the scrollPosition of a textarea to it’s maximum position? I’m trying to create an msn-like socket application, and need to have my textArea scrolled to the lowest position. I tried txtLog.vPosition = txtLog.maxVPosition; and txtLog.vPosition = txtLog.textField.height, but no luck. Thanks! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.