View Full Version : How can I customize the scrollpane with external buttons
shan9211
03-22-2005, 07:54 AM
hi Users,
I would like to know how can we customize the scrollpane component with the external up and down buttons. This was easy with the dynamic textfield, that you place two up and down buttons beside it and write the following script:
for up button : instName.scroll += 1
for down button : instName.scroll -= 1
Now when we place two buttons near the scrollpane component what actionscript should we use to scroll the content up and down. This script doesn't work with it. So if someone knows about it then do share it with us.
Regards,
Xeeschan
oldnewbie
03-22-2005, 02:14 PM
Why external buttons on the scrollpane? Can't you use the scrollpane's own buttons?
shan9211
03-25-2005, 08:04 AM
hi there..
Well I know that there are buttons with the scrollpane component, but I want to design the component in such a way that it should give a sci fi look and should be controlled by exteral buttons. I don't like to use the old style scrollbar and buttons. That's why I asked that if someone knows the code for the external buttons to be used with the scrollpane component. I hope you got the idea of what I am trying to make.
Regards,
Xeeschan
SirNapalm
03-27-2005, 01:57 PM
hi shan,
well that scrolling is always a bit of a problem. of course me being a designer as well I do not like the "normal" buttons and want to design my own. I think I might just have the thing for you. It scrolls anything and is quite simple to use in your main mc.
hope this helps
shan9211
03-28-2005, 07:18 AM
hi SirNapalm,
First of all thanx for taking time out and making a .fla of it. Secondly the .fla is not working with my flash copy. It is saying unexpected file format. I guess you have designed it in Flash MX 2004, if that is the case I will be very obliged if you can make it in Flash MX. And if that is not the case then plz do attach the file again.
Regards,
Xeeschan
SirNapalm
03-28-2005, 09:05 AM
Hi Xeeschan,
Yes, sorry I keep forgetting that this Forum is Flash MX and not MX 2004.
I have saved the .fla as MX version and you should be able to open it.
Cheers
pyrocorp
03-28-2005, 09:20 AM
instName.setScrollPosition(14,40);
on an x,y basis how many pixels to scroll in what direction..
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.