[TxMt] AS2- How do I target my root MC when using MTASC?

Alistair Colling alistair.colling at fpp.net
Fri May 23 11:47:58 UTC 2008


Hiya, I've started compiling using MTASC from Textmate using the  
'Build with MTASC' option. I'm using the XTraceTest.as file (at the  
bottom) and it compiles great.

What I can't figure out is how to target the Stage from my class, if  
I have movieclips on there that I want to target for example. I can  
target the _root  but this isn't ideal.

Any suggestions much appreciated


Cheers :)
Ali





import com.mab.util.debug;

class XTraceTest extends MovieClip{	
	static function main() {
		debug.waitForSocketConnection = true;
		debug.initSocket("127.0.0.1");
		debug.trace("Yo, whaz upppppp:?");
		debug.trace("This is a really really really really really really  
really really really really really long string");
		debug.trace("[DEBUG] This is a debug string");
		debug.trace("[WARN] This is a warning");
		debug.trace("[NORMAL] This is a normal formatter string");
		debug.trace("[CRITICAL] This is a critical warning");
		
		for(var a = 0; a < 10; a++) {//say hi 10 times
			debug.trace("Hi server! " + a);
		}
		
		var testOb = {question:"Are you cool?", response:"Of course!"};
		debug.dumpObject(testOb);
	}
	
}



--------------------------------------------------------------------------
Alistair Colling
Interactive Developer

FPP Brand Communications (Newcastle upon Tyne)
The Courtyard
Dinsdale Place
Sandyford
Newcastle upon Tyne NE2 1BD
Telephone: +44 (0)191 261 6662
Fax: +44 (0)191 233 2511

This transmission is confidential and intended solely for the person or organisation to whom it is addressed.
It may contain privileged and confidential information. If you are not the intended recipient, you should not
copy, distribute or take any action in reliance on it. If you have received this transmission in error, please
notify the sender at the e-mail address above. 
FPP Design Limited. Reg. Office: The Courtyard, Dinsdale Place, Sandyford, Newcastle upon Tyne NE2 1BD. 
Registered Number 3775564. Registered in England and Wales. Visit our website at http://www.fpp.net/



More information about the textmate mailing list