12-10-2010 06:52 PM - edited 12-10-2010 06:58 PM
can someone explain to me what is suppose to be the parameter of the show() method of a dialog?
the examples in the documentation are not clear:
Note: In the last line of the code snippet above, the window group ID is passed into the show method: .show(IowWindow.getAirWindow().group); This ensures that the dialog will be modal for only this application. In other words, the application can still be minimized when this dialog is active.
i understand what the purpose is, but what is a window group ID?
Solved! Go to Solution.
12-15-2010 03:33 PM
12-15-2010 07:39 PM
01-28-2011 10:19 PM
If I add the IowWindow to my MXML Mobile application i get a runtime error.
VerifyError: Error #1079: Native methods are not allowed in loaded code.
Does anyone know why i would get this?
01-29-2011 12:13 AM
@peter's right about the import.
@Omnipitence Are you testing it in the simulator or as a desktop app? If in the simulator then I'm not sure, if a desktop app then run on the simulator.
03-26-2011 11:14 AM - edited 03-26-2011 11:18 AM
fix for VerifyError: Error #1079: Native methods are not allowed in loaded code.
as in Flash Pro, you need to import entire air folder from sdk. problem is that this entire folder content of swc's will be Merged into code.
so to fix the error with VerifyError: Error #1079: Native methods are not allowed in loaded code.
you need to link to each swc file and qnx-air.swc needs to be external.
Heres a screenshot, this swc is only one linked as external, all others are Merged into code
and to show alertdialog i use this:
var alert:AlertDialog = new AlertDialog(); alert.title = "Warning"; alert.message = "This operation may harm your computer. Do you still want to proceed?"; alert.addButton("OK"); alert.addButton("CANCEL"); alert.dialogSize= DialogSize.SIZE_MEDIUM; alert.addEventListener(Event.SELECT, alertButtonClicked);
notice show() has nothing in it, just call for show() and you will be good
02-28-2012 04:59 AM
Hello friends i still get the problem when i click on button and push the dialog then it gives the exception PPSChannel not found please help me
thanks in advance