Loading a swf to container

Hi.

I have a button on stage. And when you push it i want it to load a swf in a container that is also on the stage. (root)

This is the script im using but i cat get it to work:

ani.onPress = function() {
_root.container.loadMovie(“stefan_o_video.swf”);
};

There is also some other script in the button but i dont think that it will affect it.

But the whole script is:

stop();
var keepGoing = false;
ani.onRollOver = function() {
keepGoing = false;
play();
};
ani.onRollOut = function() {
keepGoing = true;
};
ani.onPress = function() {
_root.container.loadMovie(“stefan_o_video.swf”);
};

Anyone know what the problem is here?

Thanks :slight_smile:

Are you sure you have a blank movie clip with the instance name “container”?

Just check it and its there :slight_smile:

try tracing out the onPress to make sure that is working

ani.onPress = function() {
_root.container.loadMovie("stefan_o_video.swf");
trace("Loading");
};

I just tested it with a quickie fla I made and it worked fine for me

Strange.
I got the trace.
But it reefuses to load the swf :frowning:

do you have the swf in the fame folder?

opps i meant same folder.