Author Topic: A game inside a game  (Read 1642 times)

paala

  • Contributor
  • ****
  • Posts: 250
  • Karma: +0/-1
    • View Profile
A game inside a game
« on: Wed, Oct 17, 2012 »
Hello,
I want to know how can a external swf can be played(as a game not as a movie) inside another swf.
I found this webpage: http://www.onemorelevel.com/game/nonoba_racing.
They host a swf on
http://static.onemorelevel.com/mpgames/racing.swf
And this swf loads the actual game , hosted on nonoba servers.

I remember that I tried in the past with loadmovie functions and it didn't worked.
EDIT: found the solution:http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Loader.html
Code: [Select]
var request:URLRequest = new URLRequest("http://*****.swf");
var loader:Loader = new Loader()
loader.load(request);
FlxG.stage.addChild(loader);
Now the new game is loaded on top of the old game. You must also remove the mouse and keyboard event listeners . and if you need to go back to quit the game  add another layer above the game with a button(ha mouse event listener must stay) that removes the game loaded
« Last Edit: Sat, Oct 20, 2012 by paala »

pete4613

  • New Member
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: A game inside a game
« Reply #1 on: Wed, Jan 8, 2014 »
Hi man, Ive been trying to get my hands in this game for a very long time, do you happen to be in position of the sfw file?

paala

  • Contributor
  • ****
  • Posts: 250
  • Karma: +0/-1
    • View Profile
Re: A game inside a game
« Reply #2 on: Mon, Jan 13, 2014 »
i don't understand ... If you are looking for the nonoba racer file, the nonoba servers were shut down permanently