Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8429791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:26:05+00:00 2026-06-10T05:26:05+00:00

Need your help. I am trying it first time. I have used following code.

  • 0

Need your help. I am trying it first time.

I have used following code.
But i get this in my console:

started loading file
SecurityError: Error #2000: No active security context.

and my image url is in same folder as my script file.

var loader:Loader = new Loader();

loader.contentLoaderInfo.addEventListener(Event.COMPLETE, fileLoaded);
loader.load(new URLRequest("C:\Documents and Settings\Owner\Desktop\23Aug\demo1\mic.jpg"), context);
var context:LoaderContext = new LoaderContext();
context.applicationDomain = ApplicationDomain.currentDomain;
trace("started loading file");
addChild(loader);
function fileLoaded(event:Event):void
{
trace("file loaded");
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T05:26:06+00:00Added an answer on June 10, 2026 at 5:26 am

    Reasons to throw securityError exception.

    • Invalid path,
    • Trying to access a URL, that not permitted by the security sandbox,
    • Trying a socket connection, that exceeding the port limit, and
    • Trying to access a device, that has been denied by the user(Ex., camera, microphone.)

    try this

    private var _loader:Loader = new Loader();
    private var _context:LoaderContext = new LoaderContext();
    private var _url:URLRequest = new URLRequest("demo1/mic.jpg");
    
    _context.checkPolicyFile = false;
    _loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onImageloaded);
    //_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
    _loader.load(_url, _context);
    private function onImageloaded(e:Event):void{
        addChild(e.target.content);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

ive being trying to cope with this problem but still. I need your help.
Need your help, trying to change this script: https://github.com/MrHus/jquery-monthly-ical To load external JSON data
i really need your help. I'm trying to get request token from twitter with
I have a CKEditor custom plugin I'm trying to write, but need some help
Need your help figuring this thing out. Scenario: On my JSP, I am trying
I need your help again :) I'm trying to do a plugin with jQuery
I need your help. I'm trying to install php_apc.dll into my php directory. So
I need your help with my script. What I'm trying t do is insert
Please I need your help with my script. I'm trying to insert values into
Need your help to get the max of CAP_PRICE based on certain criteria in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.