For CS5 and ActionScript:
When debugging my InDesign Extension, I occaionally get random exceptions thrown without an indication of where on the stack it was thrown. I suspect that this is being caused by Alert.show, and I further suspect that it is due to the value I pass for "parent", I have tried "this" and "Sprite(mx.core.Application.application)".
Alert.show("Place Block succeeded","",Alert.OK, Sprite(mx.core.Application.application));
What should I be using?
This question is really more appropriate for the CS SDK forum, but...
The correct way to do it is:
Alert.show("text", "title", Alert.OK, Sprite(mx.core.Application.application));
FWIW, I usually use jsxInterface.alert(alertString). You get a much more standard looking (synchronous) alert dialog like that...
How do you call "jsxInterface.alert(alertString)"?
Here's info on jsxInterface (personally I use something a bit more complex, but the idea is the same):