This library lets you load project files.

Lib.Project.getText(path)

Load text content

path - absolute path to project text file

Lib.Project.getBytes(path)

Load ByteArray content

path - absolute path to project binary file


Properties:

Lib.Project.isExported

Equals "true" if project been exported from LuaStudio application


Examples:


local data = Lib.Media.Display.BitmapData.loadFromBytes(Lib.Project.getBytes("/Bitmaps/assets/Image.jpg"), nil)


local fntXml = Lib.Sys.Xml.parse(Lib.Project.getText("/3D/Away3D/Basic_BitmapFont/assets/BerberRevKC_260.fnt"))

Created with the Personal Edition of HelpNDoc: Free EPub producer