A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Putting 3 swf files in 1 swf

  1. #1
    Junior Member
    Join Date
    Sep 2007
    Posts
    2

    Putting 3 swf files in 1 swf

    Hi. I'm new to this forum. Need help from you guys here.

    I have 3 swf files which i want to place into 1 main swf, with 3 links in the main swf able to play the 3 swf respectively. Sort of like an archive of the 3 swf files, for placing into a powerpoint presentation.


    I tried importing the 3 swf into a new file in Flash CS3, but only the symbols (not the actions) get imported.

    Thanks in advance.

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    You need to load the swfs into your main movie dynamically.
    - The right of the People to create Flash movies shall not be infringed. -

  3. #3
    Junior Member
    Join Date
    Sep 2007
    Posts
    2
    A helpful forumer offered the following code:

    Code:
     yourButton1.onRelease = function() {
          holder1.loadMovie("movie1.swf");
    }
    
    yourButton2.onRelease = function() {
          holder2.loadMovie("movie2.swf");
    }
    
    yourButton3.onRelease = function() {
          holder3.loadMovie("movie3.swf");
    }
    Is that what you mean? I'm having a slight problem with it. After clicking button 1 and loading movie 1, clicking on button 2 loads movie 2 on top of movie 1. Can I remove movie 1 before loading movie 2?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center