Hi Alex,

Thanks. I have question how to check this? which software I need to use.Thanks

Mark

--- In [email protected], Alex Harui <aha...@...> wrote:
>
> Check your use-network options and your trust files
> 
> 
> On 4/12/10 9:19 AM, "markflex2007" <markflex2...@...> wrote:
> 
> 
> 
> 
> 
> 
> Hi,
> 
> I have following code to load/play swf file,but I get follow security 
> error.Do you have a idea to fix that.
> 
> Thanks for help.
> 
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
> layout="absolute" creationComplete="OnCreationComplete()">
> <mx:Script>
> <![CDATA[
>  import mx.core.UIComponent;
>  private var loader:Loader;
> 
>  private function OnCreationComplete():void
>  {
>  var url : String ="assets/swfload.swf";
>  loader = new Loader();
>  var request:URLRequest = new URLRequest(url);
>  loader.load(request);
>  loaderHolder.rawChildren.addChild(loader as DisplayObject);
>  }
> 
>  private function onStop():void
>  {
>  var mc : MovieClip = loader.content as MovieClip;
>  mc.stop();
>  }
> 
>  private function onPlay():void
>  {
>  var mc : MovieClip = loader.content as MovieClip;
>  mc.play();
>  }
> ]]>
> </mx:Script>
> <mx:VBox width="100%" height="100%" horizontalAlign="center"
>  verticalAlign="middle">
>  <mx:Canvas id="loaderHolder" width="500" height="500"/>
>  <mx:Button label="Stop" click="onStop()"/>
>  <mx:Button label="Play" click="onPlay()"/>
> </mx:VBox>
> </mx:Application>
> 
> Error Message:
> 
> Error #2044:
> Unhandled SecurityErrorEvent:. text=Error #2140: Security sandbox violation: 
> file:///C:/Users/user/Documents/Flex Builder 3/
> swfTest/bin-debug/swfTest.swf cannot load 
> file:///C:/Users/user/Documents/Flex Builder 
> 3/swfTest/bin-debug/assets/swfdemo.swf.
> Local-with-filesystem and local-with-networking SWF files cannot load each 
> other.
> 
> 
> 
> 
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>


Reply via email to