I’m currently working on this mobile project that requires using a StageWebView component. The problem with that component is as some of You have noticed it’s not in the standard flash display list. It’s a component that can cover everything even a popup displaying a error message. There are two ways to solve that popup error.
One is :every time something should be shown use the drawViewPortToBitmapData method.
The second solution is to use the native extension to create a native alert like in this tutorial liquid-photo
Love the work that the guys form Liquid-photo have done. But… I can’t imagine to debug everything on IOS. Using windows to do that is long and annoying.So I made some changes to their project on github.
The basic change is that I’v added a extension for Windows platform.So there is no more annoying error of incompatible components.
First I was using a simple trace message. But that didn’t work. It doesn’t allow everything that a simple popup with multiple buttons can do.
The second change is in the action script library. In Air on desktop there is a library called Alert. It enables static method show. I’v tried to make my library similar.
Grab the source from github:
NativeAlert.show( "some message" , "title" , "first button label" , "otherButtons,LabelsSeperated,WithAComma" , someAnswerFunction);
Remember to always dispose before closing the app.
I’v also added a static function isSupported Like adobe recommends.