Hi. I am pretty new to actionscripting. I need some help. I have this banner ad I have created using tweeens and a delay. I need to make it so that the banner add restarts after the lastt delay. I have been playing with this for a while and can’t figurre out how to do this. Since the movie clip is in one frame I can’t use gotoAndPlay. Any help would be highly appreciated. I f you have any ideas let me know. Thanks
Chris
bkg.getURL(“http://www.cnn.com”, “_blank”);
import mx.transitions.Tween;
import mx.transitions.easing.*;
var xPosT:Tween = new Tween(mcScout, “_x”, Strong.easeInOut, 473, 17.5, 1, true);
var xPosT:Tween = new Tween(mcMonitor, “_x”, Strong.easeInOut, 473, 140, 1, true);
var xPosT:Tween = new Tween(mcManage, “_x”, Strong.easeInOut, 473, 295, 1, true);
xPosT.onMotionFinished = function() {
delInterval = setInterval(delayfunction, 2000);
function delayfunction() {
var xPosT:Tween = new Tween(mcScout, “_alpha”, Strong.easeOut, 100, 0, 1, true);
var xPosT:Tween = new Tween(mcMonitor, “_alpha”, Strong.easeOut, 100, 0, 1, true);
var xPosT:Tween = new Tween(mcManage, “_alpha”, Strong.easeOut, 100, 0, 1, true);
xPosT.onMotionFinished = function() {
unloadMovie(root.container01);
clearInterval(delInterval);
var xPosT:Tween = new Tween(mcCopy2, “_x”, Strong.easeInOut, 473, 19, 1, true);
xPosT.onMotionFinished = function() {
delInterval = setInterval(delayfunction, 2500);
function delayfunction() {
var xPosT:Tween = new Tween(mcCopy2, “_alpha”, Strong.easeOut, 100, 0, 1, true);
unloadMovie(root.container01);
clearInterval(delInterval);
var xPosT:Tween = new Tween(mcBkg, “_y”, Strong.easeInOut, -59, -2, 1.5, true);
var xPosT:Tween = new Tween(mcCopy3, “_y”, Strong.easeInOut, -59, -2, 1.5, true);
xPosT.onMotionFinished = function() {
delInterval = setInterval(delayfunction, 2500);
function delayfunction() {
gotoAndPlay(1);
}
};
}
};
};
}
};