[xray] How to see all objects?
Darren Cook
darren at dcook.org
Wed Mar 15 21:17:44 EST 2006
I have the code below, and when I view it in xray I can see the txt
object under _root fine. But what I cannot see is my HelloWorld object,
under either _level0 or _global.
If I attach a reference to _root (the commented out line at the bottom
of the below code) then I can see it.
Is there a way to view all my objects without explicitly attaching them
to _root?
BTW I don't see the output from _global.tt() anywhere. Am I doing
something wrong there?
Darren
-------------------------------------------------------
//Compile with:
//mtasc -swf helloworld1.swf -cp ../as2classes -main
// -version 7 -header 300:200:12 -strict HelloWorld.as
import com.blitzagency.xray.util.XrayLoader;
class HelloWorld{
/** Holds reference to the single global class that main() creates */
static var app:HelloWorld;
public var data:String;
/** Constructor: does all the work */
function HelloWorld(){
data="Hello World";
_root.createTextField("txt",10,0,0,0,0);
_root.txt.autoSize='left';
_root.txt.text=data+"\n";
_global.tt("Finished initializing HelloWorld");
}
/** Program entry point: creates one global instance of our class */
static function main(){
XrayLoader.loadConnector("XrayConnector.swf", _level0, true);
app=new HelloWorld();
//_root.app=app;
}
}
More information about the xray
mailing list