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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:04:59+00:00 2026-06-15T16:04:59+00:00

I want to show several images to my application sourceAudioFile =(event.target as File); sourceAudioFile.data;

  • 0

I want to show several images to my application

            sourceAudioFile =(event.target as File);
            sourceAudioFile.data;

            var myLoader:Loader = new Loader(); 
            var url :URLRequest = new URLRequest("file:///" + sourceAudioFile.nativePath);
            myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onImageLoaded);
            myLoader.load(url); 

Registration Listener

private function onImageLoaded(e:Event):void 
{
            var image : Bitmap= new Bitmap(e.target.content.bitmapData);
            image.scaleX = 0.5 ; 
            image.scaleY = 0.5 ; 
}

Is there any way by which i can add some custom values to Event.COMPLETE to know what type of image is being loaded.

like e.imageName , e.noOfImage which i can access in complete handler & provide values to it when i register this event.

Thanks in advance

  • 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-15T16:05:00+00:00Added an answer on June 15, 2026 at 4:05 pm

    Yes you can, try registering event like:

    myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,function(e:Event){
    
      dispatchEvent(new CustomEvent(CustomEvent.COMPLETE, "<imageType>"));
    
    }, false, 0, true);
    

    And Add new Class, extending the Event class:

    public class CustomEvent extends Event {
    
            public static const COMPLETE:String  = "CustomEventComplete";
    
            public var imageType:String = "";
    
            public function CustomEvent(type:String, imageType:String = "", bubbles:Boolean = false, cancelable:Boolean = false){
    
                super(type, bubbles, cancelable);
    
                this.imageType = imageType;
            }
    
            override public function clone():Event {
    
                return new CustomEvent(type, customTarget, bubbles, cancelable);
            }
    
        }
    

    Now you can register for CustomEvent.COMPLETE & get the image type in the listener.

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

Sidebar

Related Questions

i have user control, which i render on several views. i want to show
I want to pass several parameters to this url and generate the map from
I want to display several images with varying intervals, for the time, i can
I want to assign a function to several div (show + i) at the
In my android application the scenario is this - I have several images stored
I want to show several ListView views, each with its corresponding title in a
I want show an information page after success db opartions. And after the info
I want show annotation view (above one of my pin) after load map. For
hii I want show a pop up Dialog box when i click on to
I'm using Drupal 7 and Views module in my site. And want show number

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.