ActionScript Overdose

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();
}
}
}