Loading a swf to container


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() {

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

But the whole script is:

var keepGoing = false;
ani.onRollOver = function() {
keepGoing = false;
ani.onRollOut = function() {
keepGoing = true;
ani.onPress = function() {

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() {

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

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.