
February 13th, 2008, 05:06 AM
|
|
Contributing User
|
|
Join Date: May 2005
Posts: 372
Time spent in forums: 1 Week 8 h 11 m 48 sec
Reputation Power: 4
|
|
|
Help on flash sliding image
hey everyone, i was wondering if you can help me on this flash sliding image which is featured on http://www.genconnect.com.sg . the sliding flash image works and i can click on the button to go to any image of the flashslide but how can i make the slide automatically instead of just using the button to make it to move the slide. below is the actionscript for the sliding image. does anyone know how i can have the actionscript to enable the flash slide to move automatically. appreciate the help.
Code:
onClipEvent (load) {
_x = 0;
_y = 0;
spd = 8;
// this is the scrolling speed, the hight the number the faster it scrolls//
}
onClipEvent (enterFrame) {
_x += (endX-_x)/spd;
_y += (endY-_y)/spd;
_root.page1.onRelease = function() {
endX = -0.8;
endY = 0;
};
_root.page2.onRelease = function() {
endX = -555;
endY = 0;
};
_root.page3.onRelease = function() {
endX = -1120;
endY = 0;
};
_root.page4.onRelease = function() {
endX = -1690;
endY = 0;
};
}
|