
May 7th, 2009, 05:45 PM
|
|
Registered User
|
|
Join Date: May 2009
Posts: 13
Time spent in forums: 1 h 9 m 26 sec
Reputation Power: 0
|
|
|
Load movie
What you're trying is not the way to go. What you need to do is create a container_mc the same size as the .swf you're trying to load. Give it an instance of container_mc. Then in AS2 you would do something like.
btn1_btn.onRelease = function () {
loadMovie ("mySwf.swf", container_mc);
}
Good luck!
Quote: | Originally Posted by pudsey Hi,
I'm a newbie to flash trying to insert an SWF flash file (a game) into another Flash file. However, when I import the swf file into the library and drag it onto the frame (and insert the stop(); command onto the frame action to stop it playing the whole movie), the SWF file plays constantly, ignoring all the actionscript and button commands in the game SWF file.
When I try inserting it using the Window component, the game SWF refuses to play at all - it just stops (clicking buttons in the game work, but it goes-to-and-stops instead of go-to-and-play like it's supposed to do). The only other component I could find was called "Loader". Using this doesn't work either, it won't play any of the animation, just like using the "Window" component
When the game SWF is played by itself (by just double-clicking to open it from Windows Explorer or embedding it in a web page), it works fine.
Any help how to do this would be appreciated.
Thanks. |
|