Newb Flash Question

Hi all,

I’m new here, and truth be told I really have no business messing around with actionscript, but here I am trying to do a little hack to a piece of existing code. Basically, the script below is for a button that when pressed multiple times will slide a graphic horizontally across the screen 200 pixels at a time.

I want to tweak it so that it will slide different pre-set distances with each click. Like 200 px, then 90px, then 120px etc…)

Any ideas? Thanks


new mx.transitions.Tween(image_holder, “_x”, mx.transitions.easing.Strong.easeOut, image_holder._x, image_holder._x + 200, 0.5, true);