Guest User

Hand coded HTML in FlexJS

a guest
Oct 25th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MXML 0.54 KB | None | 0 0
  1. <js:Application>
  2.  
  3.     <fx:Declarations>
  4.         <js:HTTPService id="stocks"/>
  5.        
  6.         <js:HTMLElement id="myButton" click="buttonHandler()"/>
  7.     </fx:Declarations>
  8.    
  9.     <fx:Script>
  10.         <![CDATA[
  11.            public function buttonHandler():void {
  12.                alert("hello world");
  13.            }
  14.        ]]>
  15.     </fx:Script>
  16.    
  17.     <js:HTMLPassthrough>
  18.         <![CDATA[
  19.            <div>
  20.                 <button id="myButton"/>
  21.             </div>
  22.         ]]>
  23.     </js:HTMLPassthrough>
  24.  
  25.  
  26. </js:Application>
Advertisement
Add Comment
Please, Sign In to add comment