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 7128621
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T11:09:27+00:00 2026-05-28T11:09:27+00:00

I am attempting to make an app in which you can load an image

  • 0

I am attempting to make an app in which you can load an image file from your computer or from a URL. I have the computer file part working fine, but am having an issue when I’m trying to load an image from a URL.

Here is the code:

public function loadNetImage(): void {
 if (urlFile.text != "")
 {
   loader.addEventListener(Event.COMPLETE, loaderComplete);
   loader.addEventListener(IOErrorEvent.IO_ERROR, handleIOError); 
   loader.addEventListener( HTTPStatusEvent.HTTP_STATUS, handleHttpStatus); 
   loader.addEventListener( SecurityErrorEvent.SECURITY_ERROR, handleSecurityError);
   try {
     var request:URLRequest = new URLRequest(urlFile.text);
     loader.load(request);
   }
   catch (e:Error)
  {
     trace(e);
  }
 }
}

The problem: After the load is requested, it doesn’t call any of my events. There are no errors and there is no loading. You can see from this code a snippet of things I’ve tried to see if there is an error.

urlFile.text is a string returning from my flex textInput. I put in a hard coded string instead of the urlFile.text and that did not work. I changed to a URLLoader instead of a base Loader, and that sort of worked (it completed the load) but I couldn’t do the image manipulation afterwards that I wanted to do, and I saw in other posts here that a Loader is the correct thing to be using.

Any help would be greatly appreciated. It’s probably something small, but I am rather frustrated by it at this point.

  • 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-05-28T11:09:28+00:00Added an answer on May 28, 2026 at 11:09 am
    var loader:Loader = new Loader();
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, _loader_completeHandler);
    loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, _loader_errorHandler);
    

    and so on.

    Events dispatched from contentLoaderInfo (which is flash.display.LoaderInfo) property of Loader.

    See

    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Loader.html#includeExamplesSummary

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been attempting to pull hard-coded configuration data from a Tomcat web-app which I'm
I am attempting to make my GUI app have a CLI frontend (not the
I am attempting to make a program in C which presents a GUI and
I'm attempting to make the switch from Windows to ubuntu (am using 12.04 LTS)
I'm attempting to make a parallax page, but when I change the placeholder image
You can see my project here - http://www.inluxphoto.com/custom/jsgallery/index.php I am attempting to make the
Im attempting to make a little app that lets you add text boxes to
I'm trying to make a real simple app in which clicking a button has
I'm attempting to make a free app upgradable to the paid version using in-app
I'm attempting to make an iOS app communicate with a server that uses Bonjour

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.