Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

strange problem with global functions

Status
Not open for further replies.

lucidtech

IS-IT--Management
Jan 17, 2005
267
US
Here's the setup...

I have two SWF files (remote1.swf and remote2.swf) uploaded on a remote server ( I have a local Flash file (local.swf) I am running as I build the system that loads these two SWF's from the remote server into movie clips.

In both of these remote SWF's I have global functions, as well as the local.swf file. Oddly enough, remote1.swf can call global functions form remote2.swf and visa versa, but neither of these remote SWF's can call a global function for the local.swf file.

I've tried the System.security.allowDomain() code, still nothing.

Any ideas?

Example code :

remote1.swf :

on(release) {
_global.traceMsg();
}

local.swf :

_global.traceMsg = function() {
trace("hi");
}

The remote SWF being loaded into local SWF cannot call the global function located in frame 1 of the local.swf timeline
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top