A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Please Help:How to Eliminate Border and Scroll Bar From Scrollpane Component

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Posts
    23

    Please Help:How to Eliminate Border and Scroll Bar From Scrollpane Component

    Hello everyone,

    I have a flash movie using actionscript 2.0. I want to delete the white border around a ScrollPane component i added to my flash movie. I also want to get rid of the horizontal scroll bar at the bottom of the component. Could some one please help me?

    For better clarity of what i mean, I also attached a picture sample of the scrollPane component.

    Thank you in advance for your help.
    Attached Images Attached Images

  2. #2
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi,

    Try

    Actionscript Code:
    scrollPane.setStyle("borderStyle","none");

    and to remove the horizontal scroll

    Actionscript Code:
    scrollPane.hScrollPolicy = "off";

    or

    highlight the scrollpane and look at the properties panel then set hScrollPolicy to none
    Last edited by fruitbeard; 03-07-2012 at 11:30 AM.

  3. #3
    Junior Member
    Join Date
    Feb 2012
    Posts
    23
    Quote Originally Posted by fruitbeard View Post
    Hi,

    Try

    Actionscript Code:
    scrollPane.setStyle("borderStyle","none");
    Hello,

    Thanks for the help. I was able to get rid of the horizontal scroll bar.
    However I tried to get rid of the white border around the component by using the Action script above, but I still have a white border.
    I did make an alteration in the code.
    Instead of using the code format scrollPane.setStyle I used an instance name i gave to my scrollPane component for the beginning of the code format.

    Here's my code:
    Code:
    aboutme_scrollpane.setStyle("borderStyle","none");
    Thanks in advance for your help.

  4. #4
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi,

    Maybe I should have been clearer

    Actionscript Code:
    whateverYOUcalledYOURscrollPane.setStyle("borderStyle","none");

    perhaps you have it inside a movieclip?? then it will be

    Actionscript Code:
    myMovieClipName.myScrollPaneName.setStyle("borderStyle","none");

    did you get it working ?

    My site/hobby:

  5. #5
    Junior Member
    Join Date
    Feb 2012
    Posts
    23
    Quote Originally Posted by fruitbeard View Post
    Hi,
    Actionscript Code:
    whateverYOUcalledYOURscrollPane.setStyle("borderStyle","none");

    perhaps you have it inside a movieclip?? then it will be

    Actionscript Code:
    myMovieClipName.myScrollPaneName.setStyle("borderStyle","none");

    did you get it working ?

    My site/hobby:
    Hello Fruitbeard,

    Thanks for your efforts. I tried re-using the code, but I still get the white border. I do not think my scrollPane component is within a Movie Clip. Unless a Compiled Clip is considered a Movie Clip. Is it? Although that is a very handy tip you gave me. I did not know you could identify a movieclip within another movieclip for mouse events.

    Maybe it has to do with where I am placing my Actionscript code. I have it placed in the first frame of my flash file, within a layer called Actionscript.


    Thank you for helping.

  6. #6
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi,

    Maybe post your fla so we can check it for you and help

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