Loading external XML from server doesn't work with Export Video/Media...
Copy link to clipboard
Copied
I have an animation that loads some XML from my web server using URLLoader (as3). All works perfect except when i try and render the film using Export Video/Media...
The XML doesn't load it just hangs on the loading screen.
Is this a bug or a security feature?
Thanks so much for your help, been working on this for a while and got so close to it working 😞
Copy link to clipboard
Copied
actionscript/code doesn't execute in video files.
Copy link to clipboard
Copied
It does - all my animated films a coded in ActionScript - that all works perfect as video. But it's the URLLoader that fails on export... : /
Copy link to clipboard
Copied
start an as3 project
put a symbol on stage and assign an instance name
assign some code to alter a visual property of that symbol
create a video
does that property change show in the video?
if so, what code did you use?
Copy link to clipboard
Copied
The actionscript in the video renders perfect - that isn't the problem. My question is about connecting to a server. This seems to be blocked when i render the video. I wonder if it's a security issue or if it is a bug or is there a work around?
Copy link to clipboard
Copied
what actionscript works?
Copy link to clipboard
Copied
All actionscript works mate 🙂
Copy link to clipboard
Copied
ok
Copy link to clipboard
Copied
Hi Kglad,
Thanks for taking the time to respond to my issue... After further testing i can confirm that when i try and load my config.xml document into my project it throws a *** Security Sandbox Violation ***. This allows me to preview the SWF file but not render it. Rendering stops when it tries to load the xml.
Rendering aside, if we just look at the issue in the debug it shows the security issue "-- Untrusted local SWFs may not contact the Internet."
Any ideas how i can get this to work? I am working locally but i want to load my config.xml from my server. I have tried adding crossdomain.xml to my server that reads "
<?xml version="1.0" encoding="utf-8"?>
<cross-domain-policy>
<allow-access-from domain="www.site1.co.uk" secure="false"/>
<allow-access-from domain="site1.co.uk" secure="false"/>
</cross-domain-policy>
And also added some as3 code in the first frame that reads:
Security.allowDomain("site1.co.uk");
Security.allowDomain("www.site1.co.uk");
Security.allowDomain("https://www.site2.co.uk/crossdomain.xml");
Security.loadPolicyFile("https://www.site2.co.uk/crossdomain.xml");
It still says in the debug security error...
Any thoughts?
Mike
Copy link to clipboard
Copied
@kgladsorry meant to remove all references to my website for ease but left some in sorry if this is confusing!
Copy link to clipboard
Copied
again, please stop posting links to your sites.
Copy link to clipboard
Copied
I think it's a *** Security Sandbox Violation ***
Anyone know anything about how to fix this? Do i need a specific crossdomain.xml policy ?

