Advertisement
SkidScripts

Untitled

Nov 29th, 2023
1,443
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MXML 0.85 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
  3.               xmlns:s="library://ns.adobe.com/flex/spark">
  4.  
  5.     <fx:Script>
  6.         <![CDATA[
  7.            // ActionScript code can be added here
  8.            // For example:
  9.            // private function buttonClickHandler():void {
  10.            //     // Action to perform on button click
  11.            // }
  12.        ]]>
  13.     </fx:Script>
  14.  
  15.     <s:layout>
  16.         <s:VerticalLayout/>
  17.     </s:layout>
  18.  
  19.     <s:Label text="Simple MXML Example" fontSize="20" />
  20.  
  21.     <s:TextInput id="inputField" width="200" />
  22.  
  23.     <s:Button label="Click Me" click="trace('Button clicked!')" />
  24.  
  25.     <s:CheckBox label="Check Me" />
  26.  
  27.     <s:TextArea width="300" height="150" />
  28.  
  29.     <s:Image source="@Embed('assets/image.png')" width="100" height="100" />
  30.  
  31. </s:Application>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement