class openfl.canvas.StyleReader

Available on all platforms

Class Fields

static var CURRENT:StyleReader

This StyleReader is used by all objects when drawn.

Instance Fields

var classes:Dynamic

When JSON-formatted files are parsed, its result is placed in this object. This variable should not be modified, unless you know what you are doing.

function new(stylesFile:String):Void

Create a new StyleReader that reads a JSON-formatted file and parses it.

stylesFile

The JSON-formatted file to look for.