|
User Details |
message
|
|
steve davenport
post date:
2011-04-08 06:53:33
|
|
I have downloaded the demo and looking to see if it is possible to control the y position of the scroller using 4 external buttons. Clicking a button would need to scroll to specific locations within the scroll content e.g the same as html anchor points. Is this possible?
|
|
|
Andrei Rinciog [Extend Studio]
post date:
2011-04-08 06:57:50
|
Hello Steve,
You can use the public methods of the Scroller component to tell it to scroll to a specific location.
You can find the available methods here:
http://www.extendstudio.com/documentation/creative-flash-scrollerAS3/documentation/docs/classic-scroller-as-methods.html
Regards,
Andrei Rinciog
|
|
|
steve davenport
post date:
2011-04-08 07:09:02
|
Hi Andrei
Thanks for replying so quickly. I'm pretty new to flash. I've tried to incorporate this but can not get this to work
butt3.addEventListener(MouseEvent.CLICK, scrolldown);
function scrolldown(e:MouseEvent) {
myScroller.scrollTo(y:500);
}
Could you help?
regards
Steve
|
|
|
Andrei Rinciog [Extend Studio]
post date:
2011-04-08 07:19:05
|
Hello Steve,
scrollTo method can receive 3 parameters. One is the direction "Vertical" or "Horizontal". The second parameter is the location in pixels or percentage. So, if you put 500 it will take you to the 500th pixel from the target movieclip.
Use this:
function scrolldown(e:MouseEvent) {
myScroller.scrollTo("Vertical", 500);
}
Regards,
Andrei Rinciog
|
|
|
steve davenport
post date:
2011-04-08 07:31:54
|
Thanks Andrei
Works a treat!!
Will definitely be purchasing. Once a gain thanks for getting back so quickly
regards
Steve
|
|
|
shuaib
post date:
2011-10-05 17:35:50
|
Hello
I'm trying to control the sroller by an external button by using
btn_test.addEventListener(MouseEvent.CLICK, scrolldown);
function scrolldown(e:MouseEvent) {
myScroller.scrollTo("Vertical", 50);
}
But I have the error message: "1120: Access of undefined property myScroller"
Can you please help me.
Thanks
|
|
|
shuaib
post date:
2011-10-06 19:10:36
|
It was just a typo mistake.
It's work fine.
Love your scroller!
Shuaib
|
|