haXe API Documentation
Back | Index
class haxe.Resource
Available in flash8, neko, js, flash, php, cpp

Resource can be used to access resources that were added through the -resource file@name command line parameter.

Depending on their type they can be obtained as String through getString(name), or as binary data through getBytes(name).

A list of all available resource names can be obtained from listNames().

static function getBytes(name : String) : haxe.io.Bytes
static function getString(name : String) : String
static function listNames() : Array<String>
Lists all available resource names. The resource name is the name part of the -resource file@name command line parameter.
Back | Index