# Newb Flash Question

**URL:** <https://forum.kirupa.com/t/newb-flash-question/235063>\
**Category:** Uncategorized\
**Created:** [August 8, 2007, 4:27am UTC](https://forum.kirupa.com/t/newb-flash-question/235063 "2007-08-08T04:27:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gdnss](https://avatars.discourse-cdn.com/v4/letter/g/e19b73/32.png) [@gdnss](https://forum.kirupa.com/u/gdnss)\
**Post date:** [August 8, 2007, 4:27am UTC](https://forum.kirupa.com/t/newb-flash-question/235063/1 "2007-08-08T04:27:00Z")

</div>

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);
