A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: Making scroll bars

  1. #1
    Junior Member
    Join Date
    May 2006
    Posts
    24

    Making scroll bars

    hi.
    it's probably pretty basic but i'm rubbish at working out action script so thought i'd ask instead.
    i want to make scroll bars,

    one for a text file that i can edit seperately without having to climb into the main movie once i've set it up.

    another for an image that's larger than the main mask
    to navigate around it- so i'll need a side to side and an up/down scroll bar.

    any tips greatfully received,
    ta,
    sam

  2. #2
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    1.) are you talking abotu DRAGGABLE scrollbar ypes?

    2.) have you looked into the components like the scrollPane & scrollBar?

    3.) are are you wanting to MAKE your own..??

  3. #3
    Junior Member
    Join Date
    May 2006
    Posts
    24

    yes and maybe yes

    ideally draggable scroll bars but i'd be happy with a button at each end that you can push repeatedly.

    i'd certainly like to be able to customise my own.

    i haven't looked into the components at all yet.
    i'll have a look in a minute.
    is it relatively straightforward?

  4. #4
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    well dragable/scroll bars for text is easy... doing it for movies on yoru own can be rough...(maybe you should just use a pre-made one and edit the "look")

    the components are fairly straight forward...it F1 (with FLASH open) to read about any component you want to..

    buttons are easy for either one..

  5. #5
    Junior Member
    Join Date
    May 2006
    Posts
    24
    hi whispers,
    i hope you are still somehow connected to this thread.
    thanks for your advice.
    i followed the instructions in the help thingy and the darn thing didn't work.
    i named the text field and set the type of text and all that but when i dragged the scroll bar in it didn't adjust itself to right size and the text wasn't displaying itself.
    help! what have i done wrong?

  6. #6
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    are you talking about the scrollbar component?

    I use this for a draggable scrollBar... its VERY little is size...and very self contained.

    all the code is ON/IN the scrollBar movieClip.....and works with a textField with the instance name of: " textField1_txt "


    you can change the height/width of the textField..and the scrollbar will adjust...just keep the scroll bar:

    a.) in the same timeline as the textField you are "scrolling"
    b.) keep it at the top of the textField (well doesnt have to be..but the botom of the textField is the farthest you can drag the scrollBar)
    Attached Files Attached Files

  7. #7
    Junior Member
    Join Date
    May 2006
    Posts
    24

    thanks whispers

    thanks whispers.
    i'll try this when i get home - i have a housemate doing a phd on the internetted computer so have to shuffle to the library to connect
    i downloaded one of your solutions before and could open the movie but not the flash document-perhaps i have an older version than you? so fingers crossed.
    also i'm wanting this to work within a movie clip. i didn't mention that before. hopefully it will! ta

  8. #8
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    it is already contained with in a movieClip..you can just drag the whole thing to ANYWHERE you want... the textField..and the scrollBar are inside of an MC.. so it is self contained.

  9. #9
    Junior Member
    Join Date
    May 2006
    Posts
    24
    Hi Whispers,
    as i feared the flash document would not open.
    i have version 6. are you on a later version?
    any idea if there is a way to convert it?
    if not thanks very much,
    it looks great, but i can't use it!
    i will continue my search

  10. #10
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    I am currently on F8...I can save to MX 2004..and then someone can convert THAt to MX possibly.

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