header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
gourav
Points:450
Posts:0

7/22/2010 2:33:43 AM

Title: swf is not opening in flexpaper


Hi all

im using flex paper when i try to access some swf files i got error (some swf is working but some are not) is this related to size.,my swf size is near about 33 mb.

SecurityError: Error #3207: Application-sandbox content cannot access this feature.
at flash.system::Security$/allowDomain()
at rfx::MainTimeline_990bfdb31b792233cf6ba9d65cdd6a27()[constructor.as:0]



1
RedBull
Points: 410
Posts:0
7/22/2010 6:23:42 AM



this is security error which occurs when you try to access external content into flash application. place the crossdomain file in the content folder which will be automatically checked by flash player when accessing the content. Crossdomain file is placed in either in domain root or in the folder where content is placed.
See the following format of cross domain file which permits the data to be accessible by flash file from any domain. Remember it is to be placed on the content domain and not of the flash file domain. Save this file as crossdomain.xml in notepad


<?xml version="1.0"?>  
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">  
<cross-domain-policy>  
  <allow-http-request-headers-from domain="*" headers="*"/>   
  <site-control permitted-cross-domain-policies="all"/>   
  <allow-access-from domain="*" />    
</cross-domain-policy> 

2
gourav
Points: 450
Posts:0
7/22/2010 8:38:59 AM



plz explain where i put this code ?
i mean if i write this code in "crossdomain.xml" and save it then how to call this in my error page?
or i have to wite this in my .mxml page(where error occurred).



thanks a lot for reply

3
RedBull
Points: 410
Posts:0
7/22/2010 9:00:52 AM



you just need to place the crossdomain file in the domain root where your assets are . ie
your assets are at abc.com\assets then you just need to place the crossdomain at abc.com\crossdomain.xml. nothing to write in the application . When flash file runs and try to access the content , it automatically searches for the crossdomain file at the domain root and loads it.

4
gourav
Points: 450
Posts:0
7/22/2010 10:19:29 PM



Hii Good Morning,


First of all thanks for reply ,

Here the problem is that this concept is also not working still the error is same , i also try crossdomain.xml to put in every folder eg: root and content folder(same where the content).

What should i do plz suggest..

Thanks
Gourav


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 5+5 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions