[osflash] Policy Problem
slangeberg
slangeberg at gmail.com
Mon Mar 10 13:36:34 PDT 2008
It does seem odd:
access unknown URL
>
Are you verifying that you're calling the correct URL? In security sandbox
probs, you should get something more like: violation attempting to access:
http://....
On Mon, Mar 10, 2008 at 3:13 PM, Timothy Garner <aussietmbo at gmail.com>
wrote:
> No Dice, Didn't work even after the xml change. Here is the error:
>
> SecurityError: Error #2123: Security sandbox violation: BitmapData.draw:
> http://www.totalimagematrix.com/cubeNavigation4.swf cannot access unknown
> URL. No policy files granted access.
> at flash.display::BitmapData/draw()
> at cubeNavigation4_fla::MainTimeline/createPlane()
> at cubeNavigation4_fla::MainTimeline/init()
> at cubeNavigation4_fla::MainTimeline/render()
>
> Still frustrated here.
>
> Tim G.
>
>
>
> On Mon, Mar 10, 2008 at 9:42 AM, slangeberg <slangeberg at gmail.com> wrote:
>
> > Are you using relative paths to load movies?
> >
> > Looking at your xml, i see you have the filenames there, so are you just
> > trying to load by name? if so, try loading at the full path, such as:
> >
> > http://www.totalimagematrix.com/logoTest.flv
> >
> >
> >
> > On Mon, Mar 10, 2008 at 11:31 AM, Timothy Garner <aussietmbo at gmail.com>
> > wrote:
> >
> > > ok,
> > >
> > > Here is the majro issue. I'm working on a project that loads video
> > > through xml to Papervision3D planes via the VideoStreamMaterial.
> > >
> > > It works in the testing phase but I continuosly get the security
> > > sandbox error to do with access to Bitmap. I've tried everything I can get
> > > my hands on about policy to fix this but I still get the same error and the
> > > strangest thing is that it's only the newest version of Flash player 9 that
> > > gives me the error, older versions run the program perfectly.
> > >
> > > Any suggestions are where to go from here. To see an example of what
> > > I'm talking about here is the link and use the flash debugger to see the
> > > errors.
> > >
> > > www.totalimagematrix.com/cubeNavigation4.html
> > >
> > > Everything is pulling from the same domain and it makes no sense why I
> > > continue to get this error.
> > >
> > > Thanks,
> > >
> > > Tim G
> > >
> > >
> > >
> > >
> > >
> > >
> > > On Sat, Mar 8, 2008 at 6:29 PM, Sinisa Rudan <sinisa.rudan at gmail.com>
> > > wrote:
> > >
> > > > 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 SecurityErrorexception because the needed policy file has not been downloaded yet.
> > > >
> > > > When you call the Loader.load() method with
> > > > LoaderContext.checkPolicyFile set 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 <http://www.infom.org.yu/>
> > > >
> > > > MAGIC WAND solutions * Studio
> > > > founder and owner
> > > > http://www.MagicWandSolutions.com<http://www.magicwandsolutions.com/>
> > > > http://www.sinisarudan.com
> > > >
> > > > --------------------------------------------------------------------------
> > > >
> > > > 2008/3/8, Timothy Garner <aussietmbo at gmail.com>:
> > > >
> > > > > 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 <
> > > > > karega.mccoy at gmail.com> 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 <aussietmbo at gmail.com> 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
> > > > > > > osflash at osflash.org
> > > > > > > http://osflash.org/mailman/listinfo/osflash_osflash.org
> > > > > > >
> > > > > > >
> > > > > >
> > > > > > _______________________________________________
> > > > > > osflash mailing list
> > > > > > osflash at osflash.org
> > > > > > http://osflash.org/mailman/listinfo/osflash_osflash.org
> > > > > >
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > osflash mailing list
> > > > > osflash at osflash.org
> > > > > http://osflash.org/mailman/listinfo/osflash_osflash.org
> > > > >
> > > > >
> > > > _______________________________________________
> > > > osflash mailing list
> > > > osflash at osflash.org
> > > > http://osflash.org/mailman/listinfo/osflash_osflash.org
> > > >
> > > >
> > >
> > > _______________________________________________
> > > osflash mailing list
> > > osflash at osflash.org
> > > http://osflash.org/mailman/listinfo/osflash_osflash.org
> > >
> > >
> >
> >
> > --
> > : : ) Scott
> >
> > Helping your grandma on the interweb
> > at: http://blog.criticalpile.com
> > _______________________________________________
> > osflash mailing list
> > osflash at osflash.org
> > http://osflash.org/mailman/listinfo/osflash_osflash.org
> >
> >
>
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
--
: : ) Scott
Helping your grandma on the interweb
at: http://blog.criticalpile.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20080310/fde83e9e/attachment-0001.html
More information about the osflash
mailing list