[xray] Minimal connector-only code
xray@osflash.org
xray at osflash.org
Tue Mar 14 03:36:06 EST 2006
Excuse that silly question (I'm knew to FAME and AS2...so you see how
much I need a good debugger ;)
So what should become Daren's example :
import com.blitzagency.xray.util.XrayLoader;
>
> class HelloWorld{
> /** Holds reference to the single global class that main()
> creates */ static var app:HelloWorld;
>
> /** Constructor: does all the work */
> function HelloWorld(){
> var xray_loader:MovieClip=new MovieClip;
> XrayLoader.loadConnector("ConnectorOnly_as2_fp7_OS_1.4.5.swf",
> xray_loader);
>
> _root.createTextField("txt",10,0,0,0,0);
> _root.txt.autoSize='left';
> _root.txt.text="Hello World!";
>
> _global.tt("Finished initializing HelloWorld"); }
>
> /** Program entry point: creates one global instance of our
> class */ static function main(){ app=new HelloWorld(); }
>
> }
>
with that new version of XrayConnect ?
I tried this, after renaming ConnectorOnly_as2_fp7_OS_1.4.5.swf to XrayConnector.swf, with no success:
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(){
XrayConnect.getInstance();
_root.createTextField("txt",10,0,0,0,0);
_root.txt.autoSize='left';
_root.txt.text="Hello World!";
_global.tt("Finished initializing HelloWorld");
}
/** Program entry point: creates one global instance of our class */
static function main(){
app=new HelloWorld();
}
}
Thanks for your helps.
Kwei CHEN
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/xray_osflash.org/attachments/20060314/dbb91737/attachment.htm
More information about the xray
mailing list