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

  • Home
  • SEARCH
  • 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 7698931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:21:32+00:00 2026-05-31T22:21:32+00:00

I worked with Haxe and actionscript programming, but I’m new to flex. Here’s my

  • 0

I worked with Haxe and actionscript programming, but I’m new to flex. Here’s my question. If I want to get image from server (blazeds) in AS3 I’ll load it to Loader a loader and then add it to some e.g. MovieClip. Should I do the same to load an image in flex? Or there some common for flex schema for doing that?

Another question is. If I have an Image on blazeds server what will a better way to get it: to pass it through java (i.e. read it, and then pass to client) or directcly with Loader?

Thank you 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-05-31T22:21:33+00:00Added an answer on May 31, 2026 at 10:21 pm

    BlazeDS is normally used to send objects serialized in AMF. It looks like an overkill to do this for an image, as it will be sent as ByteArray, but you’ll spend resources processing it. Possibly, a better way, especially if the image is a static content, just serve it as a static file with whatever server running BlazeDS.

    There are different ways you can use an image in Flex. Some particular to Flex framework are: use it as a source to the Image component, however, this component is somewhat too big for a number of tasks. For example, creating tiles of the same image will be very ineffective if you use this component. There is BitmapImage, which is meant to be a lightweight counterpart of Image, but it may not have all the desired functionality (it doesn’t inherit from InteractiveObject, so it cannot respond to mouse events. It is also only available as Spark component.

    What I usually do, if I need to use images is this:

    1. If I need to cache them in the program (to reuse their BitmapData) I write a class that is responsible for loading and caching the results.

    2. I write a very simple component that extends UIComponent and uses it’s graphics property to draw the given BitmapData into it. This usually allows for simple sharing of the same BitmapData in several components.

    3. Have this component override updateDisplayList method so that it would scale or trim the BitmapData it uses.

    I do use Loader to load images, as there’s really no other way to do it. Other components such as Image or SWFLoader or BitmapImage use Loader too and they don’t add anything of value on top of that.

    Possibly, if you need slice-9-grid functionality, then there is something built-in in the Spark set of components, yet I’d still rather do it myself then rely on it. Flex components aren’t to be trusted really.

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

Sidebar

Related Questions

I worked with rails around the year ago. Now I get the new version
I worked with a graphic designer that did not clone from my github account.
im worked in soap message, using SAXparser to retrieve the value(from Webservice) stored in
I worked in flash cs3. Have People.swf- library MovieClips, they have export for actionscript
Anyone worked with Subsonic3 and Entity Framework here who can tell me the pros
I worked on a CMS and I want to have diffrent Buttons for special
Has anyone here already worked with the Rational / IBM CAL and knows if
The code worked all along. Somehow I manage to get Visual C++ Express not
I have worked with SQL for several years now, primarily MySQL/PhpMyAdmin, but also Oracle/iSqlPlus
I worked with libevent2 for some time, but usually I used it to handle

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.