About in the Flash form in the judgment should, ColdFusion should have very good, beautiful hints, but sometimes to use pop-up window to give customers to decide whether to continue to do or cancel the current operation of such a situation, so is similar to the confirm of JS function Oh!
The specific implementation is to transform the Flash form alert box.
Alert ("Are you sure your want to remove all records?", "Warning", Mx.controls.Alert.OK | Mx.controls.Alert.CANCEL, Myclick Handler);
In the controls add two warning to use the button, to transform it, so that itself a button alert into two, this technique is the inspiration on the asfusion, if my flash as familiar, I can probably do more exciting, So we need to work hard
<cfsavecontent variable= "Showalert" > var myobj = {}; var myclickhandler = function (evt) {if (Evt.detail = = Mx.controls.Alert.OK) {
Alert ("Records deleted", "Completed"); }}alert ("Are you sure your want to remove all records?", "Warning", Mx.controls.Alert.OK | Mx.controls.Alert.CANCEL, MYCLI Ckhandler);</cfsavecontent>
<cfform name= "MyForm" height= "" width= "" format= "Flash" timeout= "0" > <cfformgroup type= "Hbox" >
<cfinput type= "button" Name= "Mybtn" value= "show Alert"/> </cfformgroup></cfform>