# Help with tweener button

**URL:** <https://forum.kirupa.com/t/help-with-tweener-button/261194>\
**Category:** flash\
**Created:** [May 24, 2008, 3:19am UTC](https://forum.kirupa.com/t/help-with-tweener-button/261194 "2008-05-24T03:19:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![girlneedshelp](https://avatars.discourse-cdn.com/v4/letter/g/e36b37/32.png) [@girlneedshelp](https://forum.kirupa.com/u/girlneedshelp)\
**Post date:** [May 24, 2008, 3:19am UTC](https://forum.kirupa.com/t/help-with-tweener-button/261194/1 "2008-05-24T03:19:59Z")

</div>

Hello,

I’ve used this code in AS2 and want it for a multiple buttons. I want once the movie clip is pressed to (do the below) but it does not seem to work. how do I get movie clip to go a specific frame label? The movie clip code is shown in the second part. The code inside the movieclip.

on (press)  
{  
gotoAndplay (“one”);  
}

* * *

I’m using this code for the scale tween on the movie clip

import mx.transitions.Tween;  
import flash.geom.ColorTransform;  
import flash.geom.Transform;

var myTween:Tween = new Tween(scale\_mc1, “\_xscale”, mx.transitions.easing.Elastic.easeOut, 100, 200, 1, true);  
var myTween1:Tween = new Tween(scale\_mc1, “\_yscale”, mx.transitions.easing.Elastic.easeOut, 100, 200, 1, true);

var myTween2:Tween = new Tween(scale\_mc1, “\_xscale”, mx.transitions.easing.Elastic.easeOut, 200, 100, 1, true);  
var myTween3:Tween = new Tween(scale\_mc1, “\_yscale”, mx.transitions.easing.Elastic.easeOut, 200, 100, 1, true);

scale\_mc1.onRollOver = function():Void {

```
myTween.start();
myTween1.start();

```

};

scale\_mc1.onRollOut = function():Void {  
myTween2.start();  
myTween3.start();

};

---

<div class="post-metadata">

**Author:** ![sparkdemon](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sparkdemon](https://forum.kirupa.com/u/sparkdemon)\
**Post date:** [May 25, 2008, 7:44pm UTC](https://forum.kirupa.com/t/help-with-tweener-button/261194/2 "2008-05-25T19:44:09Z")

</div>

// name your buttons/movieclips as btn1,btn2… and i assume they are on root

for(var i=0;i\<numberOfbuttons;i++)  
{  
var btn=\_root[“btn”+i];  
btn.onRollOver=function(){ myTween.start();myTween1.start(); }  
btn.onRollOut=function(){ myTween2.start();myTween3.start(); }  
}
