I am trying to display dialog in Flex for Blackberry application.
I have tried following code but it gives me:
ReferenceError: Error #1065: Variable qnx.display::IowWindow is not defined
this error at line number 8 i getting stuck with that.
So help me or give another way to display dialog in Flex
- var myDialog:AlertDialog = new AlertDialog();
- myDialog.title = "Dialog";
- myDialog.message = "This is a small alert dialog";
- myDialog.addButton("OK");
- myDialog.addButton("Cancel");
- myDialog.dialogSize = DialogSize.SIZE_SMALL;
- myDialog.addEventListener(Event.SELECT, alertButtonClicked);
- myDialog.show(IowWindow.getAirWindow().id);