Welcome Guest [Log In] [Register]
Welcome to Brackenwood. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
opening external swf files; not in a browser
Topic Started: May 9 2006, 04:13 AM (137 Views)
juggleballz
Member Avatar
I'm loose, full of juice and ready for use!
Is there any way that Flash can open another swf, but not in a browser. Im using get URL at the moment and its opening the swf in browser window. but i just want it to open in a flash player?

FScommand is old hat and its not used anymore, but apparently u can download a flash player plugin that tells ur flash player to make FScommand work.

any takers? Thnaks a million if u help me out. cheers.
Offline Profile Quote Post Goto Top
 
ItsaMystery
Member Avatar
Brackenwood Lightweight
What you're looking for is what's called the "loadMovie()" command.

To get it set up, create an empty movie clip and place it at (0, 0) on your stage (at least just for now for testing purposes). Give it an instance name of "loader". Then, on on a frame/button action, add the code:

Code:
 
loadMovie("name_of_swf_you_want_to_load.swf", loader);


In quotes, the first part in the parenthesis is the name of the file you want to load, relative to your current flash file. For example, if this code/the loader MC is in "main.swf", and you want to load "project1.swf" (which is located in the same folder as main.swf), all you would have to code is: loadMovie("project1.swf", loader);

As you may have guessed, the second parameter in the parenthesis is the instance name of the MC you want to load the external .swf into.

Hope that helps! :fpbls:
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Actionscript · Next Topic »
Add Reply