# Help with tweener

**URL:** <https://forum.kirupa.com/t/help-with-tweener/250162>\
**Category:** Uncategorized\
**Created:** [January 26, 2008, 5:11am UTC](https://forum.kirupa.com/t/help-with-tweener/250162 "2008-01-26T05:11:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamessy](https://avatars.discourse-cdn.com/v4/letter/j/ee7513/32.png) [@jamessy](https://forum.kirupa.com/u/jamessy)\
**Post date:** [January 26, 2008, 5:11am UTC](https://forum.kirupa.com/t/help-with-tweener/250162/1 "2008-01-26T05:11:25Z")

</div>

im basicly want to control what color the text goes instead of going the same color of the movie clip, if any 1 could help id be grateful

heres the code and i have attached the fla and swf

import caurina.transitions.Tweener;

```
var out : Object = {
_x:70,
time:1,
transition: "bounceeaseIn"

```

}

```
var textcolor : Object = {
_color:0xffffff,
time:1,
transition: "bounceeaseIn"

```

}

```
var scale : Object = {
_x:80,
_xscale:110,
_color:0x000000,
time:1,
transition: "bounceeaseIn"

```

}

var myButtons:Array = new Array(“home”,“services”,“contactus”);  
var arrayLength:Number = myButtons.length;

var startY:Number = 23;  
var startX:Number = 40;  
for (var i = 0; i\<arrayLength; i++) {  
but = this.attachMovie(“button”, “button”+i,i, {\_x:30+(startX), \_y:40 +(startY\*i)});

but.text1.text = myButtons\*;

but.onRollOver = function() {  
Tweener.addTween(this,{base:scale});

};

but.onRollOut = function() {  
Tweener.addTween(this,{base:out});

};

}
