Questions

Answer

How to load assets from a different domain using crossdomain.xml

If you're trying to load assets (e.g. images, videos) from a different domain than the one where the SWF file is hosted, you'll need a crossdomain.xml file hosted on the domain where the assets are located to allow the required files to be loaded in the SWF.

Here is an example situation:

The SWF file along with all XML files are hosted on yourDomain.com
The images are hosted on yourOtherDomain.com
You have to create a crossdomain.xml file in the root of yourOtherDomain.com with the following content:

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
    <site-control permitted-cross-domain-policies="master-only"/>
    <allow-access-from domain="yourDomain.com"/>
</cross-domain-policy>

This situation also applies in the case you have configured your website in such a way that yourdomain.com does not redirect to www.yourdomain.com and you're trying to load assets from one domain to another.

Note: DO NOT add http:// or https:// in front of domain names.

Comments

  • Page:
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • >
  • loading comments...

WRIGHT

Posted 2 years ago

My web host will not accept a SWF file. I would like to store the swf on Google drive or Dropbox. Is this possible? CAn you supply the code? Must the assets and images be on Google drive or Dropbox or can they still be on same domain as the html file which contains the code?
Simply. I just want to use a few your components on a free service which does not host swf, but I have google drive, and dropbox. I have also heard of mega uploads and rapid share for hosting files. do you have any recommendations for being able to use swf, and mp3’s remotely hotlinked to an html?

qq35319593

Posted 5 years ago

hi,i buy the personal license.
when i test in localhost,the watermark is disappeared,but when i changed the localmachine,the watermark is display agin.
the problem is how i get to use it in the formal project and remove the watermark.

FlashXML Support

Hi. What component? Try to clear your browser cache.

teknogeek1300

Posted 6 years ago

Is it possible to use URL’s without a crossdomain.xml file?

Ex: “http://i49.tinypic.com/e7e8ba.jpg

FlashXML Support

Hi. Yes with a php proxy.

Keith

Posted 6 years ago

Hi there,

I am using a localhost environment to load an XML file (contains paths to local files) into Flash. These paths are then passed to a php file (on localhost) which does some encoding and sends back encoded file paths. The Flash file then loads these assets.

My problem is thus, the flash file works perfectly and loads all the encoded data when tested in priviledged mode (from flash) but when I try to test through the localhost/(..path to .swf) only the php encoding works, flash is refusing to load the local assets that are passed back from the php script.

Any advice on how best to set this up in terms of allowing access to the local files would be greatly appreciated.

FlashXML Support

Hello. What error you get?

Raj

Posted 6 years ago

will I be able to use the components both in Joomla and WordPress platform?

FlashXML Support

Yes

  • loading comments...
  • Page:
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • >

Do you have a question?

you will get an answer in 24 hours, tops.

(required) Only alphanumeric characters allowed
(required) (will not be published)
Please type a message! Your message is too long! Either try to keep within 1500 characters, or contact our support team via email at support [at] flashxml.net.
(will not be published)
You mistyped the two words!
Can't read? Change the image
Format your comments using Textile: *bold*, _italic_, "link text":address, @code@
Connect to us on Facebook Follow us on Twitter Subscribe to our RSS feed
Copyright © FlashXML.net 2009 - 2019