Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Text Area Component Scrollbar Not Resetting to Top



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> Flash Forum
View previous topic :: View next topic  
Author Message
inum



Joined: 17 Dec 2004
Posts: 2
Location: Brooklyn, NY

PostPosted: Mon Dec 20, 2004 2:33 am    Post subject: Text Area Component Scrollbar Not Resetting to Top Reply with quote

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
View user's profile Send private message Visit poster's website
Phate
500+ Club


Joined: 21 Nov 2004
Posts: 818
Location: 127.0.0.1

PostPosted: Tue Dec 21, 2004 4:34 am    Post subject: Re: Text Area Component Scrollbar Not Resetting to Top Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
inum



Joined: 17 Dec 2004
Posts: 2
Location: Brooklyn, NY

PostPosted: Sat Jan 15, 2005 4:00 am    Post subject: Re: Text Area Component Scrollbar Not Resetting to Top Reply with quote

I set the vPosition for the TextArea component to 0... that did the trick!
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> Flash Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap