In which way it won't work? One additional thing related to crossdomain and images. If you want to access the content of the loaded image from AS ( Loader.content), then you should set the context of load instruction to check the policy file. import flash.system.LoaderContext; context = new LoaderContext(); context.checkPolicyFile = true; loader=new Loader(); var request:URLRequest = new URLRequest(url); loader.load(request, context);
If you attempt one of these operations without having specified checkPolicyFile at loading time, you may get a SecurityError exception because the needed policy file has not been downloaded yet. When you call the Loader.load() method with LoaderContext.checkPolicyFileset to true, Flash Player does not begin downloading the specified object in URLRequest.url until it has either successfully downloaded a relevant cross-domain policy file or discovered that no such policy file exists. All the best, Sinisa Rudan -------------------------------------------------------------------------- Associate editor of multimedia part of InfoM Journal, Journal of Information technology and multimedia systems. http://www.infoM.org.yu MAGIC WAND solutions * Studio founder and owner http://www.MagicWandSolutions.com http://www.sinisarudan.com -------------------------------------------------------------------------- 2008/3/8, Timothy Garner <[EMAIL PROTECTED]>: > > Thanks! > > > That worked fantastic. One issue though, It seems the newest version of > flash player won't play my swf's correctly. And it seems to be only with IE. > Firefox runs them fine. > > Any suggestions? > > Tim > > > > On Thu, Mar 6, 2008 at 9:38 PM, Karega McCoy <[EMAIL PROTECTED]> > wrote: > > > 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 > > > > > _______________________________________________ > 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
