Skip to main content
Participant
August 3, 2009
Question

Externally Loaded .SWF Issue

  • August 3, 2009
  • 2 replies
  • 937 views

I've loaded an external .swf into a movieclip in my parent .swf using the loadMovie(); function. The file loads perfectly and in the right position, however I can no longer access the functions of the external .swf. When I load the file into a level rather than a movieclip, the functions (buttons and timeline) of the external .swf work properly.

Is there any way to use the functions of the external .swf when I load it into an empty movie clip?

Thanks in advance

This topic has been closed for replies.

2 replies

fiascoedAuthor
Participant
August 4, 2009

Thanks for all the help -- turns out I just needed a _lockroot command on my empty movie clip

webqaflash
Inspiring
August 3, 2009


loadMovie("load.swf",loader_mc);    //OR  loader_mc.loadMovie("load.swf");

In the above case load.swf loaded in movieclip loader_mc.

If there is a function exists in the load.swf you can call as loader_mc.yourfunction();

fiascoedAuthor
Participant
August 3, 2009

Thanks for the reply

Unfortunately that's already the code I'm using to load the .swf in -- this file consists of several movie clips with rollover effects. Is that my issue?

webqaflash
Inspiring
August 3, 2009

I think rollover effect is not aproblem.

First test this calling a function in the loaded swf by  creating two test swfs.