Hi there
I am having an issue with a site I am working on. Basically I have a “shell” movie that contains the nav bar and an empty container movie clip (“container_1_mc”) that I load and unload external swf movies into.
The problem:
At times the loaded swfs start to play erratically and then the main shell starts to screw up and all sorts of mayhem ensues:
This is the code I am using on one of the buttons:
_root.photos_btn.onRelease = function() {
stopAllSounds();
// moves the current loaded swf off screen to the left
var tween_handler:Tween = new Tween(contain_1_mc, "_x", Bounce.easeOut, 0, -1000, 50, false);
tween_handler.onMotionFinished = function() {
// loads a new swf into the continer_mc
_root.contain_1_mc.loadMovie("photos.swf");
// moves the newly loaded container_mc onto the screen from the right
new Tween(contain_1_mc, "_x", Bounce.easeOut, 1000, 0, 20, false);
};
Can anyone figure this out or at least point me in the right direction? Any help would be great
Many thanks
-A