Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Loading external XML from server doesn't work with Export Video/Media...

Participant ,
Feb 09, 2023 Feb 09, 2023

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 😞

TOPICS
ActionScript , Code , Error , How to , Import and export
490
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 09, 2023 Feb 09, 2023

actionscript/code doesn't execute in video files.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 09, 2023 Feb 09, 2023

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... : /

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 09, 2023 Feb 09, 2023

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 09, 2023 Feb 09, 2023

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 09, 2023 Feb 09, 2023

what actionscript works?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 09, 2023 Feb 09, 2023

All actionscript works mate 🙂

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 09, 2023 Feb 09, 2023

ok

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 10, 2023 Feb 10, 2023

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 10, 2023 Feb 10, 2023

@kgladsorry meant to remove all references to my website for ease but left some in sorry if this is confusing!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 10, 2023 Feb 10, 2023
LATEST

again, please stop posting links to your sites.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 09, 2023 Feb 09, 2023

I think it's a *** Security Sandbox Violation ***

Anyone know anything about how to fix this? Do i need a specific crossdomain.xml policy ?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines