Advanced Flash Components
Search!
Search!
Home >  Knowledge Base >  IMG Loop >  How to change scroll direction...
How to change scroll direction with ActionScript
Date: Apr 20, 2007   Views: 1762  
Question:
I am trying to change scroll direction and reset the component with a button. Can this be done?
Answer:

andreit (Admin)
Sure, what you need to do is reset scrollDirection variable and then call draw() method to reset the component. Here is the code:

myLoop.scrollDirection = "right";
myLoop.draw();
Component Info