dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Scroll Bars Appear Only If Needed

  1. #1
    Member
    Join Date
    Feb 2002
    Location
    ST PAUL
    Posts
    31

    Scroll Bars Appear Only If Needed

    I've seen a couple posts on this topic that didn't work for me.

    I have a dynamic text box with external text (file is called "biographies_ahrens.txt", variable is called "ahrens_txt") loaded into it using this code...

    myData = new LoadVars();

    myData.onLoad = function(success){
    if (success) {
    ahrens_txt.htmlText = this.ahrens_txt;
    } else {
    ahrens_txt.htmlText = "error loading variables";
    }
    }

    myData.load("text/biographies_ahrens.txt");

    stop();

    This works fine with or without a scroll bar. But I want to add code that determines if the imported text requires a scroll bar or not. If it does not require a scroll bar, I'd like the scroll bar to be invisible.

    Thanks for taking a look at this for me...
    Eric
    : / / pride of the east side

  2. #2
    Senior Member k/smaert's Avatar
    Join Date
    Dec 2003
    Posts
    210
    i just had a similar problem. you can use maxscroll and bottomscroll to solve this problem.

    take a look at this thread:

    http://www.flashkit.com/board/showth...hreadid=552868

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center