This IS possible. I've done it.

Here's some code:

if (clickedOnWhat=="btnRemoveFromGList") {
  var myClickHandler = function (evt) {
    if (evt.detail == mx.controls.Alert.OK) {
      //mx.controls.Alert.show(evt.detail);
      _root.GroupsRO.RemoveGroupMember(_root.oUserInfo,o
bjCoInfo.coid.toString(),objGrpInfo.group_id.toString());
    }
  }
  var titleStyles = new mx.styles.CSSStyleDeclaration();
  titleStyles.setStyle("color", "white");
  titleStyles.setStyle("fontSize", 13);
  //titleStyles.setStyle("fontWeight", "bold");
  mx.controls.Alert.titleStyleDeclaration = titleStyles;
  var msgStyles = new mx.styles.CSSStyleDeclaration();
  msgStyles.setStyle("color", "red");
  msgStyles.setStyle("fontSize", 11);
  mx.controls.Alert.messageStyleDeclaration = msgStyles;
  var btnStyles = new mx.styles.CSSStyleDeclaration();
  btnStyles.setStyle("color", "black");
  btnStyles.setStyle("fontSize", 11);
  mx.controls.Alert.buttonStyleDeclaration = btnStyles;
  mx.controls.Alert.okLabel = "Remove";
  var iCoInfo:Number = objCoInfo.coname.length;
  var sCoInfo:String = '';
  sCoInfo = "Confirmation - Remove Company from Supplier Group?\n"
  mx.controls.Alert.show("Remove'" + objCoInfo.coname.toString() +
"'", sCoInfo, mx.controls.Alert.CANCEL | mx.controls.Alert.OK, _root,
myClickHandler, removeImg, mx.controls.Alert.CANCEL);
}




--
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