Hi,
I'm currently working with AIR > iOS for iPad.
If I add a StageWebView to my stage and play a video in there, does anyone know if there is any way I can add something to the stage on top of the StageWebView?
Thanks,
Mark
As Joe said, its true. but you can draw your stagewebview not to the stagewidth and stagehieght. so that you have the items to show up when you having the stagewebview. and still you can use the graphic and buttons there. For example using the button you can remove the stagewebview by setting the value to null.
var webView:StageWebView = new StageWebView();
webView.stage = this.stage;
webView.viewPort = new Rectangle( 0, 0, 200, 200 );
webView.loadURL( "http://www.example.com" );
So here we are setting the viewport rectangle to have it's topleft corner at 0,0 and the bottom right corner at 200,200.
You can then have a regular button on the stage at say 250,250 to remove the stagewebview.
Actually there is a way to do this using an ANE... Check out this guys blog: http://lancelotmobile.com/blog/button-on-top-of-a-stagewebview/
I'm finding this ANE invaluable for video. Soooo much easier than dealing with stageWebView (once you start getting beyond the basics of SWV).
This will even let you put your own controls on top of the video.
http://darkredz.com/introducing-ios-uiwebview-and-videoplayer-native-e xtension-for-air-mobile/
Awesome support from Leng, too!
Demo video just release...
http://darkredz.com/demo-on-videoplayer-class-in-uiwebview-native-exte nsion/
North America
Europe, Middle East and Africa
Asia Pacific