# Stop start function on (release)

**URL:** <https://forum.kirupa.com/t/stop-start-function-on-release/177380>\
**Category:** flash\
**Created:** [February 1, 2006, 2:34pm UTC](https://forum.kirupa.com/t/stop-start-function-on-release/177380 "2006-02-01T14:34:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Claire\_murphy](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Claire\_murphy](https://forum.kirupa.com/u/Claire_murphy)\
**Post date:** [February 1, 2006, 2:34pm UTC](https://forum.kirupa.com/t/stop-start-function-on-release/177380/1 "2006-02-01T14:34:10Z")

</div>

Sorry to have to post a secondary thread…but i’ve had responses to the previous one and now a new problem exists.

Why am I having to multiple click my button to make this function work? On each release of the button ‘SUB’ moves that little bit more but I need the function to work in one go after just one click!!

Something is obviously working for it to move at all, I just dont understand why it’s moving in stages!!

[COLOR=#0000ff][COLOR=#0000ff][COLOR=#000000]scrollIt = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR][/COLOR]  
[COLOR=#0000ff]if[/COLOR][COLOR=#000000] COLOR=#000000[/COLOR][COLOR=#000000] [COLOR=#000000]{[/COLOR][/COLOR]  
[COLOR=#0000ff]\_root[/COLOR][COLOR=#000000].[/COLOR][COLOR=#000080]SUB[/COLOR][COLOR=#000000].[/COLOR][COLOR=#0000ff]\_x[/COLOR][COLOR=#000000] += -[/COLOR][COLOR=#000080]30[/COLOR][COLOR=#000000];  
[COLOR=#000000]}[/COLOR] [/COLOR][COLOR=#0000ff]else[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]if[/COLOR][COLOR=#000000] COLOR=#000000[/COLOR][COLOR=#000000] [COLOR=#000000]{[/COLOR][/COLOR]  
[COLOR=#0000ff]\_root[/COLOR][COLOR=#000000].[/COLOR][COLOR=#000080]page[/COLOR][COLOR=#000000].[/COLOR][COLOR=#0000ff]\_x[/COLOR][COLOR=#000000] += COLOR=#000000[/COLOR][COLOR=#000000]/[/COLOR][COLOR=#000080]8[/COLOR][COLOR=#000000]; [/COLOR][COLOR=#0000ff]\_root[/COLOR][COLOR=#000000].[/COLOR][COLOR=#000080]SUB[/COLOR][COLOR=#000000].[/COLOR][COLOR=#0000ff]\_x[/COLOR][COLOR=#000000] += COLOR=#000000[/COLOR][COLOR=#000000] /[/COLOR][COLOR=#000080]2[/COLOR][COLOR=#000000];  
[COLOR=#000000]}[/COLOR][/COLOR]  
[COLOR=#000000]}[/COLOR][COLOR=#000000];[/COLOR][/COLOR][/COLOR]  
[COLOR=#0000ff][COLOR=#0000ff][/COLOR][/COLOR]  
[COLOR=#0000ff][COLOR=#0000ff]on[/COLOR][COLOR=#000000] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR][/COLOR]  
[COLOR=#0000ff]\_root[/COLOR][COLOR=#000000].[/COLOR][COLOR=#000080]scrollIt[/COLOR]COLOR=#000000[/COLOR][/COLOR][COLOR=#000000];  
[COLOR=#000000]}[/COLOR][/COLOR]  
[COLOR=#000000][COLOR=#000000][/COLOR][/COLOR]  
[COLOR=#000000][COLOR=#000000]All help i’m getting is much appreciated, i’ve tried ringing people but you guys are easily the best at helping out in times of need.[/COLOR][/COLOR]
