| View previous topic :: View next topic |
| Author |
Message |
inum
Joined: 17 Dec 2004 Posts: 2 Location: Brooklyn, NY
|
Posted: Mon Dec 20, 2004 2:33 am Post subject: Text Area Component Scrollbar Not Resetting to Top |
|
|
I'm building a forms-based application using Flash MX 2004.
I can't get the scrollbar in the text area to reset to the top of the scroll region when moving from page to page. I'm using instanceName.scroll = 0 (last line in code excerpt below), but that doesn't seem to be working. I also tried instanceName.scrollPosition = 0 and that didn't work either. Maybe the code is in the wrong place?
| Code: |
Home_btn.onPress=function():Void
{
Main.visible=true;
Main.Home.visible=true;
Main.Approach.visible=false;
Main.Testimonials.visible=false;
Main.Inspiration.visible=false;
Main.News.visible=false;
Main.Bio.visible=false;
Interactive.visible=false;
Contact.visible=false;
Main.Home.Home_xc.trigger();
Main.Main_ta.scroll = 0;
};
|
Any help would be appreciated. I can send you the FLA file if that would be helpful. The client wants this up and running tonight, so I need to get this working as soon as possible. Thanks!
Last edited by inum on Mon Feb 21, 2005 12:46 am; edited 1 time in total |
|
| Back to top |
|
 |
|
|
Phate 500+ Club

Joined: 21 Nov 2004 Posts: 818 Location: 127.0.0.1
|
Posted: Tue Dec 21, 2004 4:34 am Post subject: Re: Text Area Component Scrollbar Not Resetting to Top |
|
|
| I am assuming that you are using the same scroll reigon for the different pages. If that is the case, it shouldn't ever reset to the top. The only thing that I can reccomend is that you create different text boxes for the different pages. |
|
| Back to top |
|
 |
inum
Joined: 17 Dec 2004 Posts: 2 Location: Brooklyn, NY
|
Posted: Sat Jan 15, 2005 4:00 am Post subject: Re: Text Area Component Scrollbar Not Resetting to Top |
|
|
| I set the vPosition for the TextArea component to 0... that did the trick! |
|
| Back to top |
|
 |
|