-----Original Message-----
Stefan Richter wrote:
>Could somebody also explain the use of @mtasc to me, ie how do I use MTASC >to
compile an existing fla in FD? My fla contains 3 lines of code where I >create
an instance of a controller class and then kick everything into life >using
myclass.init(). Do I need to use main() or something? Why?
Well, yeah. Basically you don't use the FLA, you use the generated SWF to
compile against. MTASC won't overwrite the three lines of code that you made in
the first frame (or whatever frame it was) and that stuff will get executed once
compiled with MTASC. Think of it like injecting the existing SWF with the new
stuff you wrote every time that you compile with MTASC.
So I'm not sure about how you configure the call to MTASC in FD, but you will
have to have it point to your controller class and also the SWF that was
previously created with the Flash IDE.
The command line will look something like this:
C:\mtasc\mtasc.exe "path/to/your/ControllerClass.as" -swf
"path/to/your/previouslyCreated.swf" -cp "path/to/your/classpath" -cp
"C:/Documents and Settings/yourUserName/Local Settings/Application
Data/Macromedia/Flash MX 2004/en/Configuration/Classes" -mx
I hope that helps.
-Chris
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org