Posted By

mcorlan on 08/11/11


Tagged

mobile alert section Flex


Versions (?)

Flex Mobile Confirmation Window


 / Published in: ActionScript 3
 

URL: http://corlan.org/?p=3088

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <s:SkinnablePopUpContainer xmlns:fx="http://ns.adobe.com/mxml/2009"
  3. xmlns:s="library://ns.adobe.com/flex/spark"
  4. backgroundColor="0x898989" width="400">
  5. <s:layout>
  6. <s:VerticalLayout gap="20" paddingBottom="10" paddingLeft="30" paddingRight="30" paddingTop="30" horizontalAlign="center"/>
  7. </s:layout>
  8. <fx:Script>
  9. <![CDATA[
  10.  
  11. private var _message:String;
  12.  
  13. [Bindable]
  14. public function get message():String {
  15. return _message;
  16. }
  17.  
  18. public function set message(value:String):void {
  19. _message = value;
  20. }
  21.  
  22. private function onClick(commit:Boolean):void {
  23. super.close(commit);
  24. }
  25.  
  26. ]]>
  27. </fx:Script>
  28.  
  29. <s:Label text="{message}" width="100%" textAlign="center"/>
  30.  
  31. <s:HGroup width="100%">
  32. <s:Button label="Yes" width="50%" click="onClick(true)"/>
  33. <s:Button label="No" width="50%" click="onClick(false)"/>
  34. </s:HGroup>
  35.  
  36. </s:SkinnablePopUpContainer>

Report this snippet  

You need to login to post a comment.