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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:32:56+00:00 2026-05-16T14:32:56+00:00

How can I copy or duplicate the bitmapdata from a mx:image component? I need

  • 0

How can I copy or duplicate the bitmapdata from a mx:image component?

I need to display the same image in multiple screens of my application and don’t want to have to download the image multiple times.

I could just use a urlrequest to download the image as a bitmap and copy that but I like the way you can can just set the source of the image component.

  • 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-16T14:32:56+00:00Added an answer on May 16, 2026 at 2:32 pm

    Image extends SWFLoader which has a content property that will contain the Bitmap object that was loaded. Wait for the image to load, cast the content to Bitmap and read its bitmapData

    public function imageLoadCompleteHandler(e:Event):void
    {
        var bitmap:Bitmap = img.content as Bitmap;
        if(bitmap == null) {
            trace("loaded content is not an image");
            return;
        }
        bmpData = bitmap.bitmapData;
        //hurray..!
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can copy remote image to my server with; @copy(http://www.example.com/image.jpg, $title.'.jpg'); But I want
I need to be able to copy a Qwidget so I can duplicate a
Possible Duplicate: Copy to clipboard without Flash I want to copy some text from
I have to say I don't understand Scala enumeration classes. I can copy-paste the
I want to write nuspec for MEF plugin. I can copy xxx.dll to content
Can Maven copy local file to a remote server using SSH? I want to
Possible Duplicate: Can I update a forked project, on git, to the original/master copy?
Possible Duplicate: Copy column from one Excel sheet to another Excel sheet I have
Possible Duplicate: How can I downgrade the version of an SVN working copy? http://subversion.tigris.org/faq.html#working-copy-format-change
How can I easily duplicate a C#/VB Form in Visual Studio? If I copy

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.