RealyUniqueName / StablexUI

UI engine for Haxe OpenFL designed to give as much freedom as possible in customizing UI
http://ui.stablex.ru/doc
Other
337 stars 80 forks source link

RTXML: Can't do autotick for Clock after display #236

Closed R3D9477 closed 8 years ago

R3D9477 commented 8 years ago

Hi. I can't do autotick for Clock after display. After launching compiled program it crashes: Uncaught exception - Invalid call

Main.hx:

package;

import ru.stablex.ui.UIBuilder;
import ru.stablex.ui.RTXml;
import sys.io.File;

class Main extends openfl.display.Sprite{
    static public function main () : Void{
        UIBuilder.init(null, true);

        openfl.Lib.current.addChild(
            RTXml.buildFn(File.getContent("/home/eugene/Desktop/Autotick/XmlGui/Gui.xml"))()
        );
    }
}

Gui.xml:

<?xml version="1.0" encoding="UTF-8"?>
<Clock value="60*60*2" on-display="$this.run();"/>

Project: Click_with_Autotick.zip

\ needed to change path to Gui.xml to your local path

Thanks.

RealyUniqueName commented 8 years ago

Fixed in dde63f5

R3D9477 commented 8 years ago

works fine now, thank you!