Skip to content

Instantly share code, notes, and snippets.

@RealyUniqueName
RealyUniqueName / Main.hx
Created October 22, 2013 09:36
Actuate fails to call setters of classes which extend classes with type parameters. Affected versions: 1.6.3 - 1.7.0
package;
import flash.display.Shape;
import flash.display.Sprite;
import flash.Lib;
import motion.Actuate;
class Main extends Test<Shape>{
/** this setter is not called on tweening */
package pony.flash;
import haxe.macro.Expr;
import pony.events.Signal;
#if !macro
import flash.external.ExternalInterface;
#end
/**
* ...
* @author AxGord
*/
@RealyUniqueName
RealyUniqueName / Builder.hx
Created July 21, 2013 21:39
Changing base class based on compilation flags
import haxe.macro.Context;
import haxe.macro.Type;
class Builder{
macro static public function getSpriteClass () : Type {
var cls : String = (
Context.defined("custom_base")
? Context.definedValue("custom_base")
: "flash.display.Sprite" //by default use this class
@RealyUniqueName
RealyUniqueName / Main.hx
Last active December 19, 2015 08:19
Simple StablexUI project
package;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.Lib;
import ru.stablex.ui.UIBuilder;
import ru.stablex.ui.widgets.Bmp;
import ru.stablex.ui.widgets.Widget;
import ru.stablex.ui.widgets.HBox;
@RealyUniqueName
RealyUniqueName / gist:5844305
Last active December 18, 2015 20:59
Traits interface example
package people.jobs;
import traits.ITrait;
import traits.Trait;
/**
* Example trait interface
*