Skip to main content
Participant
April 13, 2009
Question

Need help with combining swf files together

  • April 13, 2009
  • 1 reply
  • 716 views

Hi Everyone
I have problem with my project.
I created several SWF files, now i want them to interact with each other
So there is main SWF file lets call it:
main.swf
then within that file(main.swf) i would like to create buttons which will be calling other swf files for instance by pressing one button one.swf will be open by pressing other button two.swf will be open and so on.
Then I would like to create buttons within one.swf and two.swf which will allowed to go back to main.swf
If someone could help me how to do it I will be grateful.
AS2.0 i am working with
many thanks

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
April 13, 2009

any loaded swf that you want to remove can use the removeMovieClip() method applied to its main (loaded swf) timeline.

so, from the main timeline of your loaded swf:

this.removeMovieClip();

meyson25Author
Participant
April 13, 2009

thanks for quick respond

So the first of all my main.swf would load, within it i would have a button. If i click on button will take me to frame 40 ( just example ) where i will have this.loadMovie("first.swf"), when this file will be loaded i want to have other button with in the first.swf which will take me back to main.swf and now you are suggesting to use this.removeMovie("first.swf")?

I am not sure if i got you answer right

Thanks again for help i am quite new to ActionScript as you can tell.

kglad
Community Expert
Community Expert
April 13, 2009

your setup has so many limitations it's very undesirable.  but if that's what you want to do, you would use the following in your loaded swf:

this.loadMovie("main.swf");