dcsimg
A Flash Developer Resource Site

Page 1 of 2 12 LastLast
Results 1 to 20 of 24

Thread: I need Scrollbar, not component, urgent!

  1. #1
    Senior Member
    Join Date
    Feb 2001
    Location
    .ee
    Posts
    102

    I need Scrollbar, not component, urgent!

    I have been searching through the web and various sites, forums but I cannot find any tutorials or samples about how to create your own scrollbar in Flash MX(ver 6). All I can find is how to use components, but they are too complicated...
    I need something simple - a scrollbar with up and down buttons and a drag button to scroll movieclips(not just text) up and down...
    HELP!

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    Check the Movies section . There are some examples there.

    //example
    http://www.flashkit.com/movies/Scrip...5334/index.php

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  3. #3
    Senior Member
    Join Date
    Feb 2001
    Location
    .ee
    Posts
    102
    thanks a bunch!
    Actually I cannot find it when browsing through Top:Scripting:scrolling
    not talking about the search

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    You have like 4 pages of possible scripts...

    http://www.flashkit.com/search.php?c...term=scrollbar

  5. #5
    Senior Member
    Join Date
    Feb 2001
    Location
    .ee
    Posts
    102

  6. #6
    Senior Member
    Join Date
    Nov 2003
    Location
    Bournemouth, UK
    Posts
    144
    I would really reccomend having another look at the scrollbar component in MX.

    its really not that complicated, unless u want to start editing the look of it, but even thats not overly difficult.

  7. #7
    Senior Member mal pacino's Avatar
    Join Date
    Jul 2003
    Location
    England - and it's going down the pan!
    Posts
    996
    What do you find difficult about the component?

    here is another tutorial:

    http://www.kirupa.com/developer/flash5/scrolltext.htm

    Although I think you are making work for yourself making your own.

  8. #8
    Senior Member mal pacino's Avatar
    Join Date
    Jul 2003
    Location
    England - and it's going down the pan!
    Posts
    996
    ok if you want to scroll a movieclip with text in it and graphics whatever, follow theses instructions.

    1. create the movieclip you want to scroll and on this occasion call it box - you will see a pic of this in the zip file I will send in, look at this pic first before you even open flash.

    2. once you have created the movie clip you want to scroll, delete it from the stage and then drag onto the stage the scrollpane component and give it an instance name of scr (this is so we can change the colour with actionscript of the scroll bars.

    3. you will also see in the properties inspector a list of options, one of these is called scroll content. in this type box. you can now resize your scroll pane to whatever size you want.

    4. ok, create a new layer and call it actions and place this actionscript on the first frame:

    // - - - scrolleyoller properties
    scr.setEnabled(true);
    scr.setStyleProperty("arrow", 0xFF0000);
    scr.setStyleProperty("face", 0xFFFFFF);
    scr.setStyleProperty("scrollTrack", 0xFFFFFF);
    scr.setStyleProperty("shadow", 0x51618E);
    scr.setStyleProperty("darkshadow", 0x333333);
    scr.setStyleProperty("highlight3D", 0xFFFFFF);


    As you will see, I used red and white for the look of the scroll pane.

    Thats it, as simple as that.

  9. #9
    Senior Member
    Join Date
    Feb 2001
    Location
    .ee
    Posts
    102
    I dislike components firstly because they take too many kilobytes

  10. #10
    Senior Member mal pacino's Avatar
    Join Date
    Jul 2003
    Location
    England - and it's going down the pan!
    Posts
    996
    what a load of rubbish.

    And thank you for thanking me for taking the time to try and help

  11. #11
    Senior Member
    Join Date
    Feb 2001
    Location
    .ee
    Posts
    102
    Thank you for your time, but anyway, If I need to make a 8 kb banner ad then I would really like to leave the FStyleformat crap out.

  12. #12
    Member
    Join Date
    Feb 2002
    Location
    ST PAUL
    Posts
    31
    What kind of banner ad needs a scroll bar anyway?
    : / / pride of the east side

  13. #13
    Senior Member
    Join Date
    Feb 2001
    Location
    .ee
    Posts
    102
    a special kind of banner ad use your imagination

  14. #14
    Senior Member mal pacino's Avatar
    Join Date
    Jul 2003
    Location
    England - and it's going down the pan!
    Posts
    996
    well look at this fla if you want to make a custom scroller.

  15. #15
    Senior Member
    Join Date
    Feb 2001
    Location
    .ee
    Posts
    102
    WHOW! This is a really nice scrollbar
    Thaks and thanks again!

  16. #16
    Senior Member
    Join Date
    Feb 2001
    Location
    .ee
    Posts
    102
    mal pacino, if you don´t mind I contributed a little to this file - added up and down buttons so it´s a perfect scrollbar to me.
    Hope this helps someone else too.
    Attached Files Attached Files

  17. #17
    Senior Member mal pacino's Avatar
    Join Date
    Jul 2003
    Location
    England - and it's going down the pan!
    Posts
    996
    yes nice and smooth, looks great

  18. #18
    Member
    Join Date
    Sep 2003
    Location
    Crewe, Cheshire
    Posts
    93
    Love it, but can we use this to scroll dynamic text???? and if yes how?Cheers

  19. #19
    Senior Member
    Join Date
    Feb 2001
    Location
    .ee
    Posts
    102
    just convert the dynamic textbox into a movieclip and scroll it?
    of course you must set the dynamic textbox to autosize and format the text accordingly

  20. #20
    Member
    Join Date
    Sep 2003
    Location
    Crewe, Cheshire
    Posts
    93
    Thats wonderful, a smaple would be perfect, Honestly that would be really ace, if you could spare some time for one.

    Just what I need for tomorrow

    Please please

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