Importing a .swf game into a flash website at runtime.
Hi,
I am a first year uni student so please bear with me. Using actionscript 3 how do I imort a .swf game into my flash website at runtime, this is the code that I have so far:
var myLoader:Loader = new Loader();
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoadComplete);
function swfLoadComplete(loadEvent:Event)
{
addChild(loadEvent.currentTarget.content);
}
myLoader.load(new URLRequest("Hangman.swf"));
However when the game is loaded it doesn't register the keyboard presses needed for the hangman game to work.
Any help would be greatly appriciated.
Cheers
Hynesy