# Scrolling a timeline movie

**URL:** <https://forum.kirupa.com/t/scrolling-a-timeline-movie/36206>\
**Category:** Uncategorized\
**Created:** [November 23, 2003, 9:24pm UTC](https://forum.kirupa.com/t/scrolling-a-timeline-movie/36206 "2003-11-23T21:24:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexmak](https://avatars.discourse-cdn.com/v4/letter/a/ea666f/32.png) [@alexmak](https://forum.kirupa.com/u/alexmak)\
**Post date:** [November 23, 2003, 9:24pm UTC](https://forum.kirupa.com/t/scrolling-a-timeline-movie/36206/1 "2003-11-23T21:24:40Z")

</div>

hi, i am working on my school website, and i am working on the timeline of my school history, but i got stuck…

this is what i wrote;

ActionScript:--------------------------------------------------------------------------------onClipEvent (load) {  
\_x = 0;  
\_y = 0;  
div = 5;  
}  
onClipEvent (enterFrame) {  
\_x += (endX-\_x)/div;  
\_root.context.plus\_one.onRelease = function() {  
if (\_x\>=-400) {  
endX = \_x-100;  
}  
};  
\_root.context.plus\_two.onRelease = function() {  
if (\_x\>=-300) {  
endX = \_x-200;  
}  
};  
\_root.context.plus\_three.onRelease = function() {  
if (\_x\>=-200) {  
endX = \_x-300;  
}  
};  
\_root.context.minus\_one.onRelease = function() {  
if (\_x\<=400) {  
endX = \_x+100;  
}  
};  
\_root.context.minus\_two.onRelease = function() {  
if (\_x\<=300) {  
endX = \_x+200;  
}  
};  
\_root.context.minus\_three.onRelease = function() {  
if (\_x\<=200) {  
endX = \_x+300;  
}  
};  
}

* * *

the problem is when i click the button again when it is scrolling, the order would mess up…

here is the swf:  
[http://hk.geocities.com/aroom2003/timeline\_beta.swf](http://hk.geocities.com/aroom2003/timeline_beta.swf)

please help me…
