[xray] Minimal connector-only code

xray@osflash.org xray at osflash.org
Tue Mar 14 03:53:25 EST 2006


> So what should become Daren's example :

Below is the code that works for me. I'm not sure there has been a new
release since so you have to make and put XrayConnect.as in the
com.blitzagency.xray.util directory. In case you don't have it I've
attached it.

Darren

//-------------------------------------------------------------------
import com.blitzagency.xray.util.XrayConnect;

class HelloWorld{
/** Holds reference to the single global class that main() creates */
static var app:HelloWorld;

/** Constructor: does all the work */
function HelloWorld(){
_root.createTextField("txt",10,0,0,0,0);
_root.txt.autoSize='left';
_root.txt.text="Hello World!\n";

_global.tt("Finished initializing HelloWorld");
}

/** Program entry point: creates one global instance of our class */
static function main(){
XrayConnect.getInstance(_level0,true);    //true means show
					//frames per second
app=new HelloWorld();
}

}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: XrayConnect.as
Type: application/x-applix-spreadsheet
Size: 1765 bytes
Desc: not available
Url : http://osflash.org/pipermail/xray_osflash.org/attachments/20060314/6019ecaf/XrayConnect.bin


More information about the xray mailing list