Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Display Rendering Problem

Display Rendering Problem

Display Rendering Problem


I have created a form in Flex 2.0.1 and when the user clicks the "Continue" button, I want to save the form as BitmapData, then encode into JPG data. However, I would like to make some of the components invisible first so they don't render, and disappear from the screen while this is happening. I would also like a busy cursor show while this is happening, as at the moment, the application looks like it freezes for a few seconds, then continues to the next page. The capture however does happen correctly, and the hidden components are not captured

The problem is that no matter what I do, the items stay on the screen while the BitmapDatais captured, and the busy cursor never displays. I have the following code:


private function formComplete():void
  sigLabel.visible = true;
  placesignature.visible = false;

  FormSnapshot = new BitmapData(vboxHolder.width, vboxHolder.height, true);
  jpgForm = new ByteArray();
  jpgForm = jpegEnc.encode(FormSnapshot);
  sigLabel.visible = false;
  placesignature.visible = true;

The actual capturing of the bitmapdata etc works perfectly, and in the captured image itself, the controls set to visible = false are not captured. However, while the data is being captured, the items are still displayed on the screen, and the busy cursor never displays. While this is happening, it looks as though the app is doing nothing, as the user can still move the mouse around the screen, although they cannot interact.

Can anyone shed some light on how to achieve this? I just need, at the very least, an indication to the user that SOMETHING is going on behind the scenes.

Any help would be appreciated!!!


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close