[xray] Where did the xray + mtasc tutorial go?

Chris Allen mrchrisallen at gmail.com
Wed Aug 16 14:31:12 EDT 2006


hey Leif,

I know that the URLs on Blitz's site are all changed now, so I'm not
sure where that thing is. It's probably time to update that thing by
now anyway. I will talk to John about doing a new one after we have
finalized the new logging stuff.

For now, it's pretty simple to build an Xray enabled application with
those tools. Here is a brief example to get you started:

Create a main class that MTASC will target, something like this:

class com.tomsnyder,MyApp
{

	public function MyApp()
	{
   		loadXray();
     }

    public static function main():Void
    {
       	var myApp:MyApp = new MyApp();       	
    }

	private function loadXray():Void
	{
		XrayLoader.addEventListener(XrayLoader.LOADCOMPLETE, this,
"xrayLoadComplete");
		XrayLoader.addEventListener(XrayLoader.LOADERROR, this, "xrayLoadError");
		XrayLoader.loadConnector("xrayConnector_1.6.swf");
	}

	private function xrayLoadComplete():Void
	{
		_global.tt("xrayLoadComplete called");
		
             //start your application logic here...

	}

	private function xrayLoadError():Void
	{
		trace("an error occurred loading the Xray connector");
	}
}

Then have MTASC target that class and it's main() method. I'm using
Ant to run MTASC, but I know that FDT has its own built in stuff if
you want to use that.

As long as xrayConnector_1.6.swf is in the same directory as your
target SWF it should work just fine.

I hope that helps. feel free to ask more specific questions if you have any.

-Chris


On 8/16/06, Leif Wells <leif.wells at gmail.com> wrote:
> All,
>
> I am trying to get FDT, MTASC, XRAY and zeroi to work together and was
> looking for the tutorial for using mtasc + xray that used to be on the Blitz
> blog.
>
> Anyone have another tutorial?
>
> Leif
>
> _______________________________________________
> xray mailing list
> xray at osflash.org
> http://osflash.org/mailman/listinfo/xray_osflash.org
>
>
>



More information about the xray mailing list