Cross-domain access in Adobe Flash and Adobe Flex

You can access data from 23 Video site via Flash, but the access is limited by our cross-domain policies. This means that .swffiles hosted on a different domain from the target site will need to be aware of the restrictions.

The master policy file in the root folder (/crossdomain.xml) does not grant explicit access to anything. However, specific policy files are located in the folders /js, /api and /<tree_id> to obtain access to data in a structured fashion. In some case, Flash will locate these files for you -- but usually you will need to load the policy files explicitly in your Flash or Flex code:

// Obtain access to load JSON files in the /js/ folder
Security.loadPolicyFile('http://videos.example.com/js/crossdomain.xml');

// Obtain access to all API methods
Security.loadPolicyFile('http://videos.example.com/api/crossdomain.xml');

// Only obtain access to user-specific API-methods
Security.loadPolicyFile('http://videos.example.com/api/user/crossdomain.xml');

// Obtain access to any photos or videos hosted in the tree with id=7340
Security.loadPolicyFile('http://videos.example.com/7340/crossdomain.xml');

// Obtain access to photo with id=59167 in tree_id=7340
Security.loadPolicyFile('http://videos.example.com/7340/59167/crossdomain.xml');

If you have administrator's access to the 23 Video site, you can overcome these cross-domain issues by hosting the .swf on the 23 Video site. This is done by uploading the file under DesignFiles.

Comments

  1. Paul
    How does one get the chrossdomain.xml files to edit them?
    » Paul
    January 29, 2012
  2. New Nike NFL Jersey
    When you want to show your support for your team, one of the best things that you can do is buy one New NFL Nike Jersey usnfljersey02.Showing individuals which player you like can be a good thing. Then you will notice that individuals will either respect you more or hate you more because of it. You will also find that the NFL Jersey Cheap can help you find new friends at the games because you will have something in common with the other people.Then, you will notice that you can guarantee that people will ask you questions about the player if they have never heard of the Authentic San Francisco 49ers Jersey before.When you let them know about the group that you support, it will be easy to see that they can agree with you. By knowing about these, it will be easy to enjoy the game and know that you are supporting the Wholesale NFL Jerseys. So your purchase of these jerseys could easily help keep the team.
    May 16, 2012

Add a comment...

Name
E-mail
Web
 
Connect with Faceboook
Content