I'm trying to create a button the continually pans the map when you hold it down. I can get it to move on every mousedown but if I try and get it to loop and keep moving it just crashes.
Here's what I've tried:
Code
<action name="mapmove">
set(mapmove_off,false);
plugin[map].panby(%1,%2);
if(mapmove_off !=true, mapmove(%1,%2));"
</action>..........
<plugin name="mapnavbut_up" url="%SWFPATH%/assets/buttons/map_nav_but.png" alpha="0" parent="mapnav" handcursor="true" visible="true" enabled="true" keep="true" align="center" edge="center" x="0"y="-44" ondown="mapmove(0,-1)" onup="set(mapmove_off,true)" onover="set(plugin[mapnavbut_up].alpha,1)" zorder="111" onhover="" onout="set(plugin[mapnavbut_up].alpha,0);set(mapmove_off,true)"/>