Pregunta

Using this class to wrap a StageWebView instance order to add it to the displaylist

http://soenkerohde.com/2010/11/air-mobile-stagewebview-uicomponent/

However, no matter what I try, I am still unable to control the alpha or visibility of the StageWebView instance.

Does anyone know how to do this?

¿Fue útil?

Solución 2

You can control visibility by setting it = null, but its an on-off option. No change in alpha is possible

Otros consejos

You can't. And you can't even place some DisplayObject over StageWebView, and animate It's alpha to imitate appearance.

It is possible to display a web page with alpha by rendering the StageWebView to a Bitmap then draw the bitmap on screen with the required alpha.

Of course, no user interactions are possible while the view is displayed this way. But when you just want to create "show / hide" animations or you don't need the user to interact with the StageWebView, then it's fine.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top