<div>Yes it is odd. It doesn't have really anything to do it seems with the domain, it really seems to have to do with passing xml onto the VideoStreamMaterial. The previous work around was to create a bitmap and draw it onto the video, however this work around was negated when flash player 9 was released.</div>
<div> </div>
<div>So the question is what do I do now.</div>
<div> </div>
<div>Tim G.</div>
<div> </div>
<div><br><br> </div>
<div class="gmail_quote">On Mon, Mar 10, 2008 at 1:36 PM, slangeberg <<a href="mailto:slangeberg@gmail.com">slangeberg@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">It does seem odd:<br><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">access unknown URL<br></blockquote><br>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://....
<div>
<div></div>
<div class="Wj3C7c"><br><br><br>
<div class="gmail_quote">On Mon, Mar 10, 2008 at 3:13 PM, Timothy Garner <<a href="mailto:aussietmbo@gmail.com" target="_blank">aussietmbo@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div>No Dice, Didn't work even after the xml change. Here is the error:</div>
<div> </div>
<div>SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: <a href="http://www.totalimagematrix.com/cubeNavigation4.swf" target="_blank">http://www.totalimagematrix.com/cubeNavigation4.swf</a> cannot access unknown URL. No policy files granted access.<br>
at flash.display::BitmapData/draw()<br> at cubeNavigation4_fla::MainTimeline/createPlane()<br> at cubeNavigation4_fla::MainTimeline/init()<br> at cubeNavigation4_fla::MainTimeline/render()<br><br>Still frustrated here.</div>
<div> </div>
<div>Tim G.</div>
<div>
<div></div>
<div>
<div> </div>
<div> </div>
<div> </div>
<div class="gmail_quote">On Mon, Mar 10, 2008 at 9:42 AM, slangeberg <<a href="mailto:slangeberg@gmail.com" target="_blank">slangeberg@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Are you using relative paths to load movies?<br><br>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:<br>
<br><a href="http://www.totalimagematrix.com/logoTest.flv" target="_blank">http://www.totalimagematrix.com/logoTest.flv</a>
<div>
<div></div>
<div><br><br><br>
<div class="gmail_quote">On Mon, Mar 10, 2008 at 11:31 AM, Timothy Garner <<a href="mailto:aussietmbo@gmail.com" target="_blank">aussietmbo@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div>ok, </div>
<div> </div>
<div> Here is the majro issue. I'm working on a project that loads video through xml to Papervision3D planes via the VideoStreamMaterial. </div>
<div> </div>
<div>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.</div>
<div> </div>
<div>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.</div>
<div> </div>
<div><a href="http://www.totalimagematrix.com/cubeNavigation4.html" target="_blank">www.totalimagematrix.com/cubeNavigation4.html</a></div>
<div> </div>
<div>Everything is pulling from the same domain and it makes no sense why I continue to get this error.</div>
<div> </div>
<div>Thanks,</div>
<div> </div>
<div>Tim G</div>
<div>
<div></div>
<div>
<div> </div>
<div> </div>
<div> </div>
<div><br><br> </div>
<div class="gmail_quote">On Sat, Mar 8, 2008 at 6:29 PM, Sinisa Rudan <<a href="mailto:sinisa.rudan@gmail.com" target="_blank">sinisa.rudan@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">In which way it won't work?<br><br>One additional thing related to <span style="FONT-WEIGHT: bold">crossdomain and images</span>.<br>
If you want to access the content of the loaded image from AS (<code><font style="COLOR: rgb(0,0,153); FONT-FAMILY: arial,sans-serif" size="2">Loader.content</font>)</code>, then you should set the context of load instruction to check the policy file.<br>
<span style="COLOR: rgb(0,0,153); FONT-FAMILY: courier new,monospace">import flash.system.LoaderContext;</span><br style="COLOR: rgb(0,0,153); FONT-FAMILY: courier new,monospace"><span style="COLOR: rgb(0,0,153); FONT-FAMILY: courier new,monospace">context = new LoaderContext();</span><br style="COLOR: rgb(0,0,153); FONT-FAMILY: courier new,monospace">
<span style="COLOR: rgb(0,0,153); FONT-FAMILY: courier new,monospace">context.checkPolicyFile = true;</span><br style="COLOR: rgb(0,0,153); FONT-FAMILY: courier new,monospace"><span style="COLOR: rgb(0,0,153); FONT-FAMILY: courier new,monospace">loader=new Loader();</span><br style="COLOR: rgb(0,0,153); FONT-FAMILY: courier new,monospace">
<span style="COLOR: rgb(0,0,153); FONT-FAMILY: courier new,monospace">var request:URLRequest = new URLRequest(url);</span><br style="COLOR: rgb(0,0,153); FONT-FAMILY: courier new,monospace"><span style="COLOR: rgb(0,0,153); FONT-FAMILY: courier new,monospace">loader.load(request, context);</span><br>
<br>
<p>If you attempt one of these operations without having specified <code>checkPolicyFile</code> at loading time, you may get a <code>SecurityError</code> exception because the needed policy file has not been downloaded yet.</p>
<p>When you call the <code>Loader.load()</code> method with <code>LoaderContext.checkPolicyFile</code> set to <code>true</code>, Flash Player does not begin downloading the specified object in <code>URLRequest.url</code> until it has either successfully downloaded a relevant cross-domain policy file or discovered that no such policy file exists.</p>
<br>All the best,<br>Sinisa Rudan<br>--------------------------------------------------------------------------<br>Associate editor of multimedia part of <span style="FONT-WEIGHT: bold">InfoM </span>Journal,<br>Journal of Information technology and multimedia systems.<br>
<a href="http://www.infom.org.yu/" target="_blank">http://www.infoM.org.yu</a><br><br><span style="FONT-WEIGHT: bold">MAGIC WAND <span style="COLOR: rgb(255,0,0)">solutions </span><font size="4">* </font>Studio</span><br>
founder and owner<br><a href="http://www.magicwandsolutions.com/" target="_blank">http://www.MagicWandSolutions.com</a><br><a href="http://www.sinisarudan.com/" target="_blank">http://www.sinisarudan.com</a><br>--------------------------------------------------------------------------<br>
<br>
<div><span class="gmail_quote">2008/3/8, Timothy Garner <<a href="mailto:aussietmbo@gmail.com" target="_blank">aussietmbo@gmail.com</a>>:</span>
<div>
<div></div>
<div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div>Thanks!</div>
<div> </div>
<div> </div>
<div>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. </div>
<div> </div>
<div>Any suggestions?</div>
<div> </div>
<div>Tim</div>
<div><span>
<div><br><br> </div>
<div class="gmail_quote">On Thu, Mar 6, 2008 at 9:38 PM, Karega McCoy <<a href="mailto:karega.mccoy@gmail.com" target="_blank">karega.mccoy@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Tim you are going to have to create a an XML file named<br>crossdomain.xml that will establish a policy for your own<br>
localdirectory. First ensure that you have the paths correctly<br>entered in your source code and then create the XML with the following<br>tags and content...<br><br><?xml version="1.0"?><br><!DOCTYPE cross-domain-policy SYSTEM<br>
"<a href="http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd" target="_blank">http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd</a>"><br><cross-domain-policy><br> <allow-access-from domain="*" secure="true"/><br>
</cross-domain-policy><br><br>Note the most important tag in the markup, <allow-access-from<br>domain="*" secure="true"/>, this ensures that you are able to access<br>the content in the directory where the data is stored from any server<br>
hosting your SWF. Be aware that allow-access-from domain="*" is a<br>wildcard so anyone else can access assets stored on the direct where<br>this file has been placed. To restrict access to specific domains<br>
please enter the domain name where you plan to place your SWF where<br>the * is located.<br><br>The secure property of the tag notes that if the assets are located on<br>an server with https protocol that only a server with https protocol<br>
may access those assets.<br>
<div>
<div></div>
<div><br><br>On 3/6/08, Timothy Garner <<a href="mailto:aussietmbo@gmail.com" target="_blank">aussietmbo@gmail.com</a>> wrote:<br>> Ok this is really strange and I hope someone out there has the answer.<br>><br>
> I'm using 3D planes and xml to play videos in Flash w/ GreatWhite.<br>><br>> While testing in flash I get this error:<br>><br>> "SecurityError: Error #2123: Security sandbox violation: BitmapData.draw:<br>
> file:///C|/Work/FlashLoaded/Project1/cubeNavigation4.swf<br>> cannot access unknown URL. No policy files granted access."<br>><br>> However if I publish the swf. and run it from the desktop or hardrive it<br>
> runs perfectly. The VideoStreamMaterials changes and updates correctly.<br>><br>> but then when I upload to my domain - it's stops functioning properly!<br>><br>> Why does it work from my own harddrive and not from the web or in flash?<br>
><br>> I know this is a Security issue, just unsure how to solve it.<br>><br>> Thanks in advance.<br>><br>> Tim G<br></div></div>> _______________________________________________<br>> osflash mailing list<br>
> <a href="mailto:osflash@osflash.org" target="_blank">osflash@osflash.org</a><br>> <a href="http://osflash.org/mailman/listinfo/osflash_osflash.org" target="_blank">http://osflash.org/mailman/listinfo/osflash_osflash.org</a><br>
><br>><br><br>_______________________________________________<br>osflash mailing list<br><a href="mailto:osflash@osflash.org" target="_blank">osflash@osflash.org</a><br><a href="http://osflash.org/mailman/listinfo/osflash_osflash.org" target="_blank">http://osflash.org/mailman/listinfo/osflash_osflash.org</a><br>
</blockquote></div><br></span></div><br>_______________________________________________<br>osflash mailing list<br><a href="mailto:osflash@osflash.org" target="_blank">osflash@osflash.org</a><br><a href="http://osflash.org/mailman/listinfo/osflash_osflash.org" target="_blank">http://osflash.org/mailman/listinfo/osflash_osflash.org</a><br>
<br></blockquote></div></div></div><br>_______________________________________________<br>osflash mailing list<br><a href="mailto:osflash@osflash.org" target="_blank">osflash@osflash.org</a><br><a href="http://osflash.org/mailman/listinfo/osflash_osflash.org" target="_blank">http://osflash.org/mailman/listinfo/osflash_osflash.org</a><br>
<br></blockquote></div><br></div></div><br>_______________________________________________<br>osflash mailing list<br><a href="mailto:osflash@osflash.org" target="_blank">osflash@osflash.org</a><br><a href="http://osflash.org/mailman/listinfo/osflash_osflash.org" target="_blank">http://osflash.org/mailman/listinfo/osflash_osflash.org</a><br>
<br></blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>: : ) Scott<br><br>Helping your grandma on the interweb<br>at: <a href="http://blog.criticalpile.com/" target="_blank">http://blog.criticalpile.com</a> </font><br>
_______________________________________________<br>osflash mailing list<br><a href="mailto:osflash@osflash.org" target="_blank">osflash@osflash.org</a><br><a href="http://osflash.org/mailman/listinfo/osflash_osflash.org" target="_blank">http://osflash.org/mailman/listinfo/osflash_osflash.org</a><br>
<br></blockquote></div><br></div></div><br>_______________________________________________<br>osflash mailing list<br><a href="mailto:osflash@osflash.org" target="_blank">osflash@osflash.org</a><br><a href="http://osflash.org/mailman/listinfo/osflash_osflash.org" target="_blank">http://osflash.org/mailman/listinfo/osflash_osflash.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>: : ) Scott<br><br>Helping your grandma on the interweb<br>at: <a href="http://blog.criticalpile.com/" target="_blank">http://blog.criticalpile.com</a> </div></div><br>
_______________________________________________<br>osflash mailing list<br><a href="mailto:osflash@osflash.org">osflash@osflash.org</a><br><a href="http://osflash.org/mailman/listinfo/osflash_osflash.org" target="_blank">http://osflash.org/mailman/listinfo/osflash_osflash.org</a><br>
<br></blockquote></div><br>