# ActionScript Overdose

**URL:** <https://forum.kirupa.com/t/actionscript-overdose/179022>\
**Category:** flash\
**Created:** [February 16, 2006, 2:24am UTC](https://forum.kirupa.com/t/actionscript-overdose/179022 "2006-02-16T02:24:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![projectAlice](https://avatars.discourse-cdn.com/v4/letter/p/9fc348/32.png) [@projectAlice](https://forum.kirupa.com/u/projectAlice)\
**Post date:** [February 16, 2006, 2:24am UTC](https://forum.kirupa.com/t/actionscript-overdose/179022/1 "2006-02-16T02:24:00Z")

</div>

How much ActionScript can you place on a mc? I’m trying to place three scripts. The first two work fine but the last one doesn’t, can somebody tell me why?

* * *

**I have an ActionScript for the mc to [COLOR=black]ease up[/COLOR]** ([COLOR=darkorchid]on the Frame[/COLOR])

easeType = mx.transitions.easing.Back.easeOut;  
var begin = 300;  
var end = 130;  
var time = 1;  
var mc = mcContacto;  
ballTween = new mx.transitions.Tween(mc, “\_y”, easeType, begin, end, time, true);

**Another one to bounce up and down when rolled over** ([COLOR=darkorchid]inside the mc[/COLOR])  
stop();  
this.onEnterFrame = function(){  
if(rewind == true){  
prevFrame();  
}  
}  
this.onRollOver = function(){  
rewind = false;  
play();  
}  
this.onRollOut = function(){  
rewind = true;  
}

**And i’m trying to place this last script to bring a swf on release**  
([COLOR=darkorchid]on the mc[/COLOR]), but it doesn’t work!

on (release) {  
if (\_root.currMovie == undefined) {  
\_root.currMovie = “map”;  
container.loadMovie(“map.swf”);  
} else if (\_root.currMovie != “map”) {  
if (container.\_currentframe\>= container.midframe) {  
\_root.currMovie = “map”;  
container.play();  
}  
}  
}
