# Negative numbers as target-value of a tween

**URL:** <https://forum.kirupa.com/t/negative-numbers-as-target-value-of-a-tween/317178>\
**Category:** flash\
**Created:** [December 13, 2010, 8:38am UTC](https://forum.kirupa.com/t/negative-numbers-as-target-value-of-a-tween/317178 "2010-12-13T08:38:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Forrest\_Gimp](https://avatars.discourse-cdn.com/v4/letter/f/7cd45c/32.png) [@Forrest\_Gimp](https://forum.kirupa.com/u/Forrest_Gimp)\
**Post date:** [December 13, 2010, 8:38am UTC](https://forum.kirupa.com/t/negative-numbers-as-target-value-of-a-tween/317178/1 "2010-12-13T08:38:10Z")

</div>

Hi

I’m not sure if if this has occurred to anyone before… I’m using the built in tween-class of flash (cs4). In my script I try to display a notification-box using a slide-in effect:

var slideIn = new Tween(this.warningBox, “width”, Regular.easeOut, 0, 150, 0.5, true);

This works. The box is invisible at start and then builds up like a flag unrolling from left to right. However, what I really want to do is sliding it in from right to left. So I tried to do this:

var slideIn = new Tween(this.warningBox, “width”, Regular.easeOut, 0, [COLOR=Lime]-150[/COLOR], 0.5, true);

Obviously, I modified the warningbox so the pivot point is to the top right, but it still won’t work. It seems the endvalue must not be a negative number. Can anyone confirm this, or have I missed something?
