I'm building a flex app with a CFC backend.  I'd like to use <cfthrow> 
to send certain kinds of errors back to the flex app, and I've got it 
dumping my event to an Alert using toString() method... but I'd like to 
actually act on some of the data being returned and provide friendlier 
alerts.

For example, I might use the following coldfusion code:

        <cfthrow
                type="AuthFailure"
                message="Method Execution Failed"
                detail="you are not logged in.">

I'd like to handle that within my fault function, which currently looks 
like this:

        private function queryDBFault(e:Event):void
        {
                Alert.show(e.toString(), "Ooops!", Alert.OK);
                mainPanel.enabled = true;
        }

But I'm not sure I can get to the type "AuthFailure", and I'm having 
some difficulty even figuring out how exactly to get at the strings 
within the event object, such as "you are not logged in".

rick


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to