加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

提醒确认框

发布时间:2020-12-15 04:51:34 所属栏目:百科 来源:网络整理
导读:?xml ? version = "1.0" ? encoding = "utf-8" ? ?? mx:Application ? xmlns:mx = "http://www.adobe.com/2006/mxml" ? backgroundColor = "black" ? layout = "horizontal" ?? ???? mx:Script ?? ???????? ![CDATA[ ? ????????????import?mx.events.CloseEv
  1. <?xml?version="1.0"?encoding="utf-8"?>??
  2. <mx:Application?xmlns:mx="http://www.adobe.com/2006/mxml"?backgroundColor="black"?layout="horizontal">??
  3. ????<mx:Script>??
  4. ????????<![CDATA[ ?
  5. ????????????import?mx.events.CloseEvent; ?
  6. ????????????import?mx.controls.Alert; ?
  7. ????????????public?function?deleteConfirm():void{ ?
  8. ????????????????Alert.yesLabel?=?'yes'; ?
  9. ????????????????Alert.noLabel?=?'no'; ?
  10. ????????????????Alert.cancelLabel?=?'cancel'; ?
  11. ????????????????Alert.show('确认要删除吗','info',1|2|8,this,back);???? ?
  12. ????????????} ?
  13. ????????????public?function?back(event:CloseEvent):void{ ?
  14. ????????????????if(event.detail==Alert.YES){ ?
  15. ????????????????????Alert.show('削除しました'); ?
  16. ????????????????} ?
  17. ????????????} ?
  18. ????????]]>??
  19. ????</mx:Script>??
  20. ????<mx:Button?label="削除"?click="deleteConfirm()"/>??
  21. </mx:Application>

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读