Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Problem with merged SWF

Guest
Jul 04, 2013 Jul 04, 2013

I have a Problem. I just merged two SWF inserting the second on the first one with the following code in AS3:

var request:URLRequest = new URLRequest("destino.swf");

var loader:Loader = new Loader()

loader.load(request);

addChild(loader);

This is a slide file, something like powerpoint where you can navigate through the slides with the arrows. I merged two SWF because it's a presentation with images and videos, The problem is that if I navigate back, the slides of the second SWF get mixed with the first one:

I'll show you a video with the problem. After the video is when the first SWF load the second one.

I hope you can help me.

TOPICS
ActionScript
735
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jul 05, 2013 Jul 05, 2013

when you want to go back, execute:

loader.unload();

(and, if there's a stream in destino.swf, use loader.unloadAndStop() )

Translate
Community Expert ,
Jul 04, 2013 Jul 04, 2013

when you "navigate back", remove your loader from the stage or, even better, apply the unload() method to it:

loader.unload();

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 05, 2013 Jul 05, 2013

And how can implement that in the code. That code has to be on one slider before the slider where is the loader?

Thanks

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 05, 2013 Jul 05, 2013

when you want to go back, execute:

loader.unload();

(and, if there's a stream in destino.swf, use loader.unloadAndStop() )

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 05, 2013 Jul 05, 2013

Yes, it worked. Thanks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 05, 2013 Jul 05, 2013
LATEST

you're welcome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines