why are you triggering a security violation when you're not crossing any sandbox? you should be able to use local paths and avoid the security issue.
I'm developing a custom version of the AS3 video gallery from http://www.adobe.ca/devnet/flash/articles/video_gallery.html
This application is causing the security problem 'out of the box'. Hence my request for help in finding a way round it. I'm an experienced general progarmmer, but not at XML scripting of Flash.
if you're using a local path to the xml and a local path to the images, there shouldn't be a violation. there shouldn't be anything else to load into your swf.
I agree. But although there seems to be nothing unusual about the Video Gallery application, it hangs after loading the static items at the point where the dynamic content should start loading from the XML data unless the Flash Player security manager is used to set the path to be trusted.
This is a nuisance, and not too obvious, if the host has web access, but appears to be a show-stopper without web access.
The test page for this app wasn't too good either - it failed to detect the version of IE7 and would only run when I'd disabled that bit of code. Re-hosting in a new page using the latest Dreamweaver embedding code fixed that OK, but not the security problem.
Can you offer any hints as to what might be triggering the security issue, since I'd prefer to avoid it if possible?
show the code used to load the xml.
Thanks for your help.
Since the problem arose from the outset before I did any modifications, all the relevant code is in the zip file from the link in my second post above.
Custom external AS3 modules in a sub-directory are invoked via linkages set in symbol properties.
I seem to have inadvertently suggested that my problem has gone away, which it hasn't. The code is available through the link in post #2.
I also now tried making a projector, but that also fails to load the XML data on other than the authoring system despite all the supporting files being available in the right relative positions on CD or USB stick.
This is a real pain for me, so any help on how to get the video gallery to play properly on various PCs without fiddling with the security settings in Flash Player will be gratefully received.
i generally don't download and correct files unless i'm hired.
if you state your issue clearly, and especially if you pinpoint the problem, you almost certainly will be helped free of charge. if you have a complex problem and especially if you require source (fla and/or as) files to be corrected, you should consider hiring someone to help.
I understand your commercial constraints, but I am asking for help in understanding the behaviour of a project which is an Adobe download, not my own code.
The problem, as I have stated above, is that the swf will not load the XML data except when run on the authoring system. Any other of my PCs requires making the source folder a trusted source before Flash Player will read the XML. As a result, it hangs after loading the stage and loading bar unless the security settings are changed. Updating to the latest Flash version makes no difference.
Again as I have said above, the broad logic is that there are named mc on the stage that have been linked in their properties to external AS3, which in turn is picked up in external AS3 class files which in turn load variables from an XML settings file and then load FLV external video files from a sub-folder using data from the XML.
Not only does the HTML/swf version hang on my other test systems, but also an executable flash file of the same project. But even after changing the Flash Player security settings replay of the EXE version hangs at the point where XML should be loading. This is not, as far as I am aware, what is supposed to happen with projectors when the swf itself runs just fine in my original host and also in other systems when security settings allow - ie it is not missing or misplaced files causing the problem.
I can see no reason why this should happen and wish to find out what is triggering this behaviour so that I can avoid falling into the same hole again.
If kglad feels unable to help, can anyone else shed some light here?
Here is the solution.
create <yourconfigfile>.cfg in #security folder and specify path of your directory in which your swf resides. then flash player won't ask for permissions