Shaun_Max If you're converting ActionScript into Haxe, in this case I think arguments.callee
translates to set_fontStyles
(Haxe on virtual properties), kinda of... Not sure if it's a bound method too (where the function object is adapted to the enclosing class's this
object). You could probably play with it in Haxe Try Sandbox.
public var fontStyles(get, set):TextFormat;
public function set_fontStyles(value:TextFormat):Void {
// procedure
}
Well, depending on what the method processStyleRestriction
does, what I'm understanding is that this setter uses argument.callee
solely for identification purposes. You could use something else, like any object instead of arguments.callee
, like var SET_FONT_STYLES_KEY:Dynamic = new Object();
.