# Problem with for action

**URL:** <https://forum.kirupa.com/t/problem-with-for-action/74273>\
**Category:** Uncategorized\
**Created:** [December 27, 2004, 11:49am UTC](https://forum.kirupa.com/t/problem-with-for-action/74273 "2004-12-27T11:49:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![woopsedoo](https://avatars.discourse-cdn.com/v4/letter/w/a87d85/32.png) [@woopsedoo](https://forum.kirupa.com/u/woopsedoo)\
**Post date:** [December 27, 2004, 11:49am UTC](https://forum.kirupa.com/t/problem-with-for-action/74273/1 "2004-12-27T11:49:13Z")

</div>

ive got a problem with my actionscript with a scroller bar. i want ot do it differently to the kirupa tutorial but im stuck on getting the actionscript to work. ive got

> 

on (press) {  
this.startDrag(true, 140, 200, 435, 200);  
}  
on (release) {  
this.stopDrag();  
}  
onClipEvent (enterFrame) {  
for (\_root.slider.\_x=\_x+1) {  
\_root.num = \_root.num+1;  
}  
}

i cant get the last bit to work so could someone help me plz to try and get the num to go up every time the sliders \_x axis goes up  
it would be a great help  
thx
