Advertisement
Guest User

Untitled

a guest
Apr 10th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Haxe 0.53 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement