Skip to main content
Participating Frequently
May 27, 2011
Question

Some doubts

  • May 27, 2011
  • 1 reply
  • 327 views

Hello everybody, first I ask you not bothered with my English, I'm using the google translator. 😃

I would love if you could help me with some questions:

- Using ActionScript can I do with my game, which is running in a  browser, verify that the user already has the files needed to run the  game installed on your computer? If he had these files do not need  anything else that was born and can play the game immediately. If he did  not have the files, they would be loaded so that the browser does not  erase these files. So when he returned to play the same game day after,  as the files already on your computer, nothing need be loaded.

- How do I remove one of the main memory image that was loaded using the  Loader class? I tried using the unload () method but nothing happened.

Thank you in advance any help.

This topic has been closed for replies.

1 reply

relaxatraja
Inspiring
May 27, 2011

loading swf:

var ldr:Loader = new Loader();

ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded);

ldr.load(new URLRequest("ext.swf"));

function swfLoaded(e:Event):void {

mcExt = MovieClip(ldr.contentLoaderInfo.content);

ldr.contentLoaderInfo.removeEventListener(Event.COMPLETE, swfLoaded);

mcExt.x = 50;

mcExt.y = 50;

addChild(mcExt);

}

unloading:

ldr.unloadAndStop();

danyeahhhAuthor
Participating Frequently
May 27, 2011

Thanks man, I got here. =)