A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Error #2000 No active security content

  1. #1
    Senior Member
    Join Date
    Jan 2010
    Posts
    141

    Error #2000 No active security content

    I have a file that loads an external swf. I made some updates to the both the master file and external swf. It worked perfect before the updates, but I now get this error when I'm in the master file and hit the button to load the external file. It does not make any errors when exporting and all other code still works even though the swf never loads. I've searched for a couple of days trying to fix, but nothing seams to help.

    Here is my code:
    Code:
    import flash.net.URLRequest;
    import flash.events.Event;
    
    var myLoad:Loader = new Loader();
    var request:URLRequest = new URLRequest("assets/foodGallery.swf");
    con.addChild(myLoad);
    myLoad.load(request);
    myLoad.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
    
    function ioErrorHandler(e:IOErrorEvent):void{
    	trace(e.text);
    }
    I have spelled the name of the external swf correctly and it does show the correct linkage to the file. Somewhere said to make a timeout function, but I don't know how to accomplish this. thanks for any help.

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    I guess the error is "Error #2000 No active security <b>context</b>". Check the path for your url and the name and extension (capital versus small letters: .SWF or .swf). Sometimes it is better to write the whole url. Then test your movie online.
    - The right of the People to create Flash movies shall not be infringed. -

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center