SHARE
TWEET

Untitled

a guest Apr 10th, 2019 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @:xml("
  2. <hbox>
  3.    <button id='button1' text='Button 1' />
  4.    <button id='button2' text='Button 2' />
  5.    <button id='button3' text='Button 3' />
  6. </hbox>
  7. ")
  8. class Test1 extends Box {
  9.     public function new() {
  10.         super();
  11.        
  12.         button1.text = "New Button 1";
  13.         button2.text = "New Button 2";
  14.         button3.text = "New Button 3";
  15.     }
  16.    
  17.     public override function createChildren() {
  18.         super.createChildren();
  19.        
  20.         trace("this was already there");
  21.         var x = 100;
  22.     }
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top