dcsimg
A Flash Developer Resource Site

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

Thread: simple tutorial for scroll bar

  1. #1
    Senior Member
    Join Date
    May 2001
    Posts
    485

    simple tutorial for scroll bar

    hello,
    i am looking for simple tutorial for a scroll bar , that works like a frame. I'm thinking it will have a movie clip and a mask, and a button to make it scroll up and a button to make it scroll down. Can anyone help

  2. #2
    Senior Member
    Join Date
    May 2001
    Posts
    485
    Ok, this is what i have done so far, i have created a movie clip. in this movie clip i have a mask, i also have the text which is a movie clip with the instance name of text. I have 2 buttons, 1 for up and 1 for down. i need some action scipr that will make the instance name of text move up and down and get stopped on the very bottom and very top. Can anyone help ?

  3. #3
    Senior Member
    Join Date
    May 2001
    Posts
    485
    ok i hacked some code from somewhere else, im close i think but it doesn't wok yet,

    what i have is the text is in a movie clip called london,

    the buttons are in a movie clip that has this code
    Code:
    onClipEvent (enterFrame) {
    	if (this.press == true) {
    		_root.london = _root.london + this.movement;
    	}
    }
    each button has this code
    Code:
    on (press) {
    pressing = true;
    _root.london.movement = -1;
    }
    on (release) {
    	pressing = false;
    }
    the other button has just a 1

  4. #4
    Senior Member
    Join Date
    May 2001
    Posts
    485
    ok i changed it again, because im confused anout the movie clip timeine heirarchy

    Code:
    onClipEvent (enterFrame) {
    	if (this.press == true) {
    		_root.ScrollLondon.london = _root.ScrollLondon.london + this.movement;
    	}
    }
    i added the .ScrollLondon to all the code because all of this is in a movie clip called ScrollLondon, but it still doesn't work.

    So when i am in a movie clip does the movie clip have its own root? i don't think so, so that swhy i did that

  5. #5
    Senior Member
    Join Date
    May 2001
    Posts
    485
    where is everyone today ?

  6. #6
    Senior Member
    Join Date
    May 2001
    Posts
    485
    hello ?
    sorry to do this, but i need this at the top so it gets answered

  7. #7

  8. #8
    Senior Member
    Join Date
    May 2001
    Posts
    485
    Thank you, their is only one problem,
    You have the scrollable text hard coded into the action script with html formatting, All the formatting works except for align=justify, It aligns it all left. All the text on the site is justified, so the client will not like this, any ideas ?

    Also I use an embedded font called helvetica neau medium condensed, the flash blurs it in the swf file, so i had to revert to harial, again the same text issue as before. any ideas

  9. #9
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Dynamic text can never be full justified!
    As for embedded fonts especially at small sizes, they will allways look more blurry, unless you use pixel fonts and then again a lot of restrictions do apply. Full justify is not possible with pixel fonts either.

  10. #10
    Senior Member
    Join Date
    May 2001
    Posts
    485
    well oldnewbie,
    what about my orginal post, where the buttons control a movie clip that behind a mask, I think im really close with that. All i neeed is the code to make it go up and down

  11. #11
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Why don't you just mask a scrollpane component? Rather than try to re-invent the weel?

  12. #12
    This should help, its one i've done and use heaps
    Attached Files Attached Files

  13. #13
    Senior Member
    Join Date
    May 2001
    Posts
    485
    tx ed,
    before i do that, whats a scrollpane oldnewbie, and how do i use it

  14. #14
    Senior Member
    Join Date
    May 2001
    Posts
    485
    tx, ed
    that works great

  15. #15
    no worries, glad it helped - real easy to change the appearance and speed too.

  16. #16
    Lord of the Singhs
    Join Date
    Mar 2002
    Location
    India
    Posts
    342
    Originally posted by jbalyney
    tx ed,
    before i do that, whats a scrollpane oldnewbie, and how do i use it
    scrollpane component is included in ur components panel... goto window >> components


    drag it onto the stage and resize it as needed... now open the library and select the mc u want to scroll... rt click and select linkage... give it a name...

    Now select the scrollpane component and give the linkage name of the mc and voila...
    CooL "N" CalM

    my body is sore
    my eyes are red
    i still itch for more
    before i hit the bed

  17. #17
    Senior Member
    Join Date
    May 2001
    Posts
    485
    no way,
    after all that, i really need to get a book about mx, and learn all the new things.
    : )
    lol

  18. #18
    Lord of the Singhs
    Join Date
    Mar 2002
    Location
    India
    Posts
    342
    a book wud be good... but wht i just explined just seems to be tough while reading and is actually a very simple procedure. No Rocket Science involved
    CooL "N" CalM

    my body is sore
    my eyes are red
    i still itch for more
    before i hit the bed

  19. #19
    Senior Member
    Join Date
    May 2001
    Posts
    485
    no, no,
    you misunderstand me, your instructions are very easy to understand, What I mean is this.... I need a book so that i can discover all the new features that flash mx has, that previous versions of flash didn't have.

    I'm using flash mx, but i'm using it like flash 5.

  20. #20
    Lord of the Singhs
    Join Date
    Mar 2002
    Location
    India
    Posts
    342
    i c
    CooL "N" CalM

    my body is sore
    my eyes are red
    i still itch for more
    before i hit the bed

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