Can you post your code here. So that we can have brief look into what you are trying to do.
I defined a Component which inherits from mx:Canvas. I set its labelFunction to "GetTreeNodeLabel".
The function "GetTreeNodeLabel" contains, among other things, the following code:
elementType = p_item.localName().toString();
var advError:AdvError = new AdvError(error, "Able was I ere I saw Elba.");
In the event of an error, I want a modal, synchronous pop-up Alert.show() box to appear with my custom message. The class AdvError which I wrote inherits from Error, and was written primarily to provide the method "DisplayAlert()" which will produce a nicely formatted and user-friendly error screen when an error occurs.
The code for that class is as follows:
// AdvError class: for extending functionality of the base Error class
public class AdvError extends Error
// Application-specific message to be displayed for the error
private var m_applicativeMessage:String;
public function AdvError(p_error:Error, p_applicativeMessage:String)
m_applicativeMessage = p_applicativeMessage;
// Display user/programmer freindly information for the error
public function DisplayAlert(p_callingContext:Sprite) :void
alertMessage = "Severe Warning: \r\n" + m_applicativeMessage;
Alert.show(alertMessage, "Alert Message", mx.controls.Alert.OK, p_callingContext);
If you ask the guy to post his / her code you could at least look at it and give them an answer
Is it throwing an error or silently not responding anything.