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
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