Questions tagged [mtasc]

12 questions
3
votes
0 answers

mtasc for Lion OSX?

I'm having a bit of trouble setting up mtasc on my Lion OSX machine. I'm currently trying to run a makefile script that is: SWFMILL := swfmill MTASC := mtasc MTASCSTDLIB := /usr/share/mtasc/std main: $(SWFMILL) simple src/jscam.xml…
Michael Vattuone
  • 319
  • 1
  • 7
  • 18
1
vote
2 answers

Migrating to Flex mxmlc from ActionScript 2 mtasc

Years ago I created a tiny, simple SWF just to play MP3 files on various browsers. I exposed interfaces and called them from JavaScript. It was all small and straightforward; you can see the entire Guise.as source code. I compiled the main class…
Garret Wilson
  • 18,219
  • 30
  • 144
  • 272
1
vote
6 answers

Can any Flash compiler put scripts on multiple frames?

Can any Flash compiler put specific scripts on specific frames of the Flash movie SWF? Like you can do from within the Flash IDE, just place a script on the required frame using the Timeline panel, and the script gets compiled to that frame of the…
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
1
vote
2 answers

Which Flash SWF compiler uses compiler directives?

Any existing Flash SWF compilers that can understand directives like #IF #ENDIF, etc? Some SWF Compilers: (Hopefuls) AS3 Compiler - Haxe AS2 Compiler - MTASC Adobe Flex Compiler - Mxmlc C# to SWF Compiler - Debreuil
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
1
vote
2 answers

Does the MTASC compiler also compile AS3

Looks like MTASC is for AS2. Does it also compile AS3?
thenengah
  • 42,557
  • 33
  • 113
  • 157
1
vote
1 answer

Importing classes in AS2 when compiling with MTASC

I'm trying to compile a project I'm working on in AS2 using MTASC. However, I'm having some issues with importing some of my classes. My directory structure is as…
caubry
  • 260
  • 4
  • 13
0
votes
2 answers

Help with MTASC and SWFMill for CamCanvas

Hey folks wondering if you can help me. I am trying to compile locally the following: https://github.com/taboca/CamCanvas-API- This is camcanvas a javascript api for a webcam. Anyhow - its build.sh remakes the swf for which the javascript makes…
RenegadeAndy
  • 5,440
  • 18
  • 70
  • 130
0
votes
2 answers

Flash AS2 Command Line compiler capablities

Although the MTASC command-line compiler can compile ActionScript class files into an SWF, I need specific insights into its capabilities, via the command-line switches. Configure which Flash Player version you're targeting, 6 / 7 / 8 -version n…
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
0
votes
0 answers

AS2 - How to fix the error "Parse Unexpected" from FlashDevelop

I'm trying to compile my classes in ActionScript2 from my project but I can not always get it when I click on the Test Project option it appears this error : Running C: \ Program Files (x86) \ FlashDevelop \ Tools \ fdbuild \ fdbuild.exe "C : \…
0
votes
1 answer

Sleeping in action script 2 using getTimer() method

How can I correctly perform something like sleep function using getTimer()? I need to do an action every 15 seconds. The code below doesn't work. I compile it with mtasc compiler on Linux. class Tuto { static var lastMsg = 0; static var msgInt =…
Phpinter
  • 23
  • 4
0
votes
1 answer

can't add a new function to String class via prototype in as2

following code; String.prototype.myFunction = function() { trace("my function is called"); }; var myString:String = "myString"; myString.myFunction(); causes this error with mtasc compiler: type error String has no field myFunction it must be…
ekesken
  • 68
  • 6
0
votes
1 answer

how to distribute a Flash component for use with MTASC?

I have a Flash component that's just a library of compiled code with some exposed API calls. Normally we distribute this as a SWC or MXP, and it works just fine. Recently I had a client express interest in using my component, but they do all their…
nerdabilly
  • 1,248
  • 4
  • 15
  • 34