# New to Actionscript: Pls Help

**URL:** https://forum.kirupa.com/t/new-to-actionscript-pls-help/215851
**Category:** flash
**Created:** [February 11, 2007, 9:29am UTC](https://forum.kirupa.com/t/new-to-actionscript-pls-help/215851 "2007-02-11T09:29:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![joehann](https://avatars.discourse-cdn.com/v4/letter/j/8dc957/32.png) [@joehann](https://forum.kirupa.com/u/joehann)
#### Post date: [February 11, 2007, 9:29am UTC](https://forum.kirupa.com/t/new-to-actionscript-pls-help/215851/1 "2007-02-11T09:29:46Z")

</div>

Hi fellow coding gurus,

# I’m a beginner in AS and is trying to build my website entirely on AS2.0. Here’s an effect ( I call it “appear effect” ) I wanna create with the tween class:

import mx.transitions.Tween;  
import mx.transitions.easing.\*;

var stb2:Tween = new Tween (stb\_mc,"\_rotation",Regular.easeInOut,0,360,0.2,true);  
var stb3:Tween = new Tween (stb\_mc,"\_xscale",Regular.easeInOut,0,80,0.2,true);  
var stb4:Tween = new Tween (stb\_mc,"\_yScale",Regular.easeInOut,0,80,0.2,true);

================================================================

I would like to have this effect triggered whenever a button needs to appear. In total, I have about 10 btns.

I believe I have to store it inside a function. Tat’s all I know, can someone pls kindly guide me thru this ?

Thanks !

- Joehann
