Groups | Blog | Home
all groups > flash actionscript > november 2006 >

flash actionscript : _global.myFunc() not accesable from other SWF



squadjot
11/15/2006 6:58:32 PM
I made a application that are spread over more SWF files, some of them are
calling a [b]_global[/b] function in the main movie. it It all works without
problems, but only when its run locally or online but on same domain only.

I use system.securityallowDomain("*") in all the SWF's..and its set up correct
and working..cause i can pass variables forth and back without problems....and
also call non-global functions (between SWF's).. but simply not global
functions ...why?? ...whyyyy????

i need to know if that is how it is supposed to be? ..either its a bug.. or
else anuneeded security "feature" ..i mean.. i already declaired
system.securityallowDomain.. and should be enough imo.
arunbe
11/16/2006 1:30:21 PM
Hi,
I dont know what you have done to get the problem.
But, _global functions are shared in the main movie, so , all the swf files
which in turn loaded into the main movie can also call the _global function.
I dont know, why this problem is comming for you...
Can tel me the project stucture ???
If problem in diffrent server mean, you just try to use crossdomain.xml in
your server...
AddThis Social Bookmark Button