# Tweening and easing a mc onto stage on enter

**URL:** <https://forum.kirupa.com/t/tweening-and-easing-a-mc-onto-stage-on-enter/283578>\
**Category:** flash\
**Created:** [March 8, 2009, 2:25pm UTC](https://forum.kirupa.com/t/tweening-and-easing-a-mc-onto-stage-on-enter/283578 "2009-03-08T14:25:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Poul](https://avatars.discourse-cdn.com/v4/letter/p/dbc845/32.png) [@Poul](https://forum.kirupa.com/u/Poul)\
**Post date:** [March 8, 2009, 2:25pm UTC](https://forum.kirupa.com/t/tweening-and-easing-a-mc-onto-stage-on-enter/283578/1 "2009-03-08T14:25:29Z")

</div>

Im trying to load a movie clip onto the stage as soon as you enter the main movie. I want to use action script to tween with a little ease in and out. I found a usefull tutorial that almost does what Im looking for, but it uses a button to call the clip onto the stage.

Here’s the code on the action layer:

myButton\_btn.onRelease = function() {  
tweenBar();  
};  
function tweenBar() {  
easeType = mx.transitions.easing.Strong.easeInOut;  
var begin = 800;  
var end = 0;  
var time = .6;  
var mc = bar\_mc;  
barTween = new mx.transitions.Tween(mc, “\_x”, easeType, begin, end, time, true);  
}

If I want to remove the button, what code do I need to put in it’s place to call the clip when it first loads up?

Can anyone help?

Many thanks
