flash (macromedia):
Hi,
I have a problem accessing variables in mc's and I must assume that it is
down to Flash Player 7 as this has not come up before. I am on a deadline,
and need this resolving some way or the other, any help is very much
appreciated.
I have had similar problems with previous versions of Flash Player, going
back to Flash 5 I think, but they were resolved with **
System.security.allowDomain("domain name"); ** - this does not seem to be
the case with FP7!!!!!!!
I have tested in MX Pro and MX, both with the same problems, the only common
factor is FP7.
The problem is as follows
I need to place a swf file (eventually it will be embedded in SWF Studio) on
the desktop. The desktop based swf loads a local xml file with client
details and then loads a swf from the net. The swf from the net then uses
the data from the local xml file to load a remote, client specific xml file.
(Setting it up this way means that I only need to update the xml file that
gets shipped out with the App, no need to change the fla, and I can update
the structure of the communal remote swf rather than sending out updates to
clients etc).
When my remote swf is loaded into the local swf it is unable to access the
xml data, or any other variables for that matter. I have tried a few tests
and the two movies just cannot communicate although the loading process is
completed ok.
When I test in MX Pro I get the following output :
*** Security Sandbox Violation ***
SecurityDomain '
http://www.pompeyd.net/Test/Test2.swf' tried to access
incompatible context
'file:///C|/Documents%20and%20Settings/PompeyD%20Ltd/Desktop/PompeyD%20Ltd/T
ests/Test.swf'
When I test in MX I get no output other than requested trace actions.
I have checked the help files and although they say the following :
System.security.allowDomain()
Availability
Flash Player 6; behavior changed in Flash Player 7.
The help files do not resolve this issue. The only difference I can see
between the behaviour in FP6 and FP7 is in relation to secure domains, which
is not what I am working with for this.
I would sincerely appreciate any help anyone can give on this issue.
Thanks
Paul Hollyer