[TxMt] AS2- How do I target my root MC when using MTASC?
Baluta Cristian
cristi.baluta at gmail.com
Fri May 23 12:30:31 UTC 2008
in object oriented programing, objects on the stage are not used, so ideal
is to attach them from library and give them a reference. and because you
switched to mtasc i suppose you want to do OOP. i recomend you to use haXe
instead anyway, mtasc is not developed anymore.
On Fri, May 23, 2008 at 2:47 PM, Alistair Colling <alistair.colling at fpp.net>
wrote:
> 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/
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
>
--
Cristi
www.ralcr.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20080523/10bb189f/attachment.html>
More information about the textmate
mailing list