...
HTML |
---|
<A href="http://sdk.datasul.com.br/confluence/download/attachments/5210382/erro_messages_meiu.swf?version=1" target="_blank">Mensagem de Erro na Janela Modal</A> |
Bloco de código |
---|
<?xml version="1.0" encoding="utf-8"?> <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="startUp()"> <mx:Script> <![CDATA[ import com.datasul.framework.ui.msg.model.UIMessage; [Bindable] public var _model:SampleMessagesModel = new SampleMessagesModel(); [Bindable] public var _controller:SampleMesssagesController; private function startUp():void { _controller = new SampleMesssagesController(this); } ]]> </mx:Script> <mx:VBox horizontalAlign="center" horizontalCenter="0" verticalCenter="0"> <mx:ComboBox id="cbTypeMessage" dataProvider="{_model.collection}"/> <mx:HBox> <mx:Button label="Info" id="btnInfo" click="_controller.onMessage(UIMessage.INFO, String(cbTypeMessage.selectedItem.data) )"/> <mx:Button label="Confirm" id="btnConfirm" click="_controller.onMessage(UIMessage.CONFIRM, String(cbTypeMessage.selectedItem.data))"/> <mx:Button label="Warning" id="btnWarning" styleName="WarningMessageButton" click="_controller.onMessage(UIMessage.WARNING, String(cbTypeMessage.selectedItem.data))"/> <mx:Button label="Error" id="btnError" styleName="ErrorMessageButton" click="_controller.onMessage(UIMessage.ERROR, String(cbTypeMessage.selectedItem.data))"/> </mx:HBox> </mx:VBox> </mx:Canvas> |
...