Skip to main content
December 17, 2012
Answered

Put something on top of the stagewebview

  • December 17, 2012
  • 6 replies
  • 1948 views

Hi,

I'm using stagewebview > Flash Builder 4.6

I have a stagewebview and I load an url in it. I want to show sometimes a slide panel on top of the stagewebview.  I tried it, but the panel is always behind the stagewebview. I know that stagewebview isn't a display object, but does anyone know if there is any way I can do it?

Thanks in advance

This topic has been closed for replies.
Correct answer gtr

Hi.

You need to take a picture of the stagewebview, add the picture to the stage, hide the real stagewebview and THEN you can add your slide panel over the top of the pic. A bit of trickery, yes, but this is how everyone makes do.

Otherwise, no, you cannot add objects over the top of a stagewebview.

Cheers,

6 replies

gtrCorrect answer
Inspiring
December 17, 2012

Hi.

You need to take a picture of the stagewebview, add the picture to the stage, hide the real stagewebview and THEN you can add your slide panel over the top of the pic. A bit of trickery, yes, but this is how everyone makes do.

Otherwise, no, you cannot add objects over the top of a stagewebview.

Cheers,

December 18, 2012

Thanks for your answer. It works correctly, but I have a little problem.

When I hide the real stagewebview, I see on the iPad, a little blinking before I can see the picture.

Is there any way to solve it?

Thanks,

Inspiring
December 18, 2012

I'm thinking this could be one of two issues (or both?);

1. You're adding the picture after removing the swv. Remember to add it before you remove the swv.

2. There might be a slight delay between capturing and processing the pic for display. (ie. AIR hasn't finished drawing the pic before your add the bitmap and take away the real swv) To get around a similar issue, I added a slight delay of a couple hundred milliseconds or so after capturing the pic to allow AIR to process the screen capture.