Click link in swf file which loads a swf game

How do I do it so I have a swf file load up that says “Play Game”, once you click that play game link, it then loads up the swf game file.

I want to do this for viral sharing as some sites have games down the bottom of a page or have 10 to 20 games stacked on each other, so at least using this option, it will save a huge amount of bandwidth. This is because most people probably will not play the game even though it loads if it’s near the bottom of a page that has 20 other loaded games on it, why waste the bandwidth.

So just wondering how this can be done or is there a tutorial for this. I’m a rather newbie at flash, but do have flash 8 I believe.

Also, is there another way it could be done other than flash maybe, like Ajax or what ever it’s call or even Javascript. PS, I want the “Play Game” link to be in the middle of the SWF game file size so like as if it’s actually part of the game.

Thanks!

What you want to do is have the external SWF load in on your button/link click.

This is quite easy.

I’ve written an article about this on my site that will help you - it covers how to load an external SWF into a parent SWF.

Take a look, it should get you started: http://fcontheweb.com/articles/external_swfs/

Yep, that is what I mean. Thanks!