Tim you are going to have to create a an XML file named crossdomain.xml that will establish a policy for your own localdirectory. First ensure that you have the paths correctly entered in your source code and then create the XML with the following tags and content...
<?xml version="1.0"?> <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"> <cross-domain-policy> <allow-access-from domain="*" secure="true"/> </cross-domain-policy> Note the most important tag in the markup, <allow-access-from domain="*" secure="true"/>, this ensures that you are able to access the content in the directory where the data is stored from any server hosting your SWF. Be aware that allow-access-from domain="*" is a wildcard so anyone else can access assets stored on the direct where this file has been placed. To restrict access to specific domains please enter the domain name where you plan to place your SWF where the * is located. The secure property of the tag notes that if the assets are located on an server with https protocol that only a server with https protocol may access those assets. On 3/6/08, Timothy Garner <[EMAIL PROTECTED]> wrote: > Ok this is really strange and I hope someone out there has the answer. > > I'm using 3D planes and xml to play videos in Flash w/ GreatWhite. > > While testing in flash I get this error: > > "SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: > file:///C|/Work/FlashLoaded/Project1/cubeNavigation4.swf > cannot access unknown URL. No policy files granted access." > > However if I publish the swf. and run it from the desktop or hardrive it > runs perfectly. The VideoStreamMaterials changes and updates correctly. > > but then when I upload to my domain - it's stops functioning properly! > > Why does it work from my own harddrive and not from the web or in flash? > > I know this is a Security issue, just unsure how to solve it. > > Thanks in advance. > > Tim G > _______________________________________________ > osflash mailing list > [email protected] > http://osflash.org/mailman/listinfo/osflash_osflash.org > > _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
