View Full Version : help to attach a scrollbar to my movieclip
flaskvacuum
06-02-2005, 04:05 PM
i just couldn't set my scrollbar to scroll properly accordingly to my movieclip.
Basically is when the user clip on the pointer,(unit1) it will collaspe to show its content. How this is done is i set the visible of the unit's content true or false. Thus expand the overall height of the moveclip and thus affect the scrolling pattern of my scrollbar.
ps: when u open the .fla, do put the contentfont.swf together to see the fonts!
Gibberish
06-02-2005, 04:57 PM
I would of used a scrollPane so you can take advantage of the refreshPane() function
flaskvacuum
06-02-2005, 05:42 PM
tks for the great help. I am kind of new to using scrollpane. Thus didn't really understand the scrollpane code. But it has bring relief to my days of pain and stress over trying to get the scroll function working for my movieclip.
Is there a similar tutorial i can get to familier myself with the code u used?
Lastly, a million thanks...Phew... .!
Gibberish
06-02-2005, 05:47 PM
Most of my questions would get answered here.
http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary318.html
Sorry I don't have a link to any real tuts.
flaskvacuum
06-02-2005, 05:53 PM
ah.....seriously thanks..man....that is sufficient.
Gibberish
06-02-2005, 06:04 PM
no worries.
flaskvacuum
06-05-2005, 11:54 AM
i understand the code now. but the scrolling doesn't stop where i want it to be. How can i effectively control whenever i want the scrollpane to be visible. For example, when all are not collasped, there should not be a scrollpane appear. i realise when there is these blank space where i can scroll way after unit 5 is not being collaspe at all. How do i solve these problem? I tried setting if content_mc._height is more then mask._height, my scrollpane appear if not then don't. But infact my content_mc._height is always more then my mask's height!
I have bring out the scrollpance onto my stage for visual alignment purposes.
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.