This FAQ contains questions/answers and tips on how to use MTASC.
Is it possible to use Unicode/UTF8 identifiers in MTASC ?
No : since the OCaml lexer does not understant UTF8 it is not possible. However you can still use UTF8 and ISO chars in literal strings.
You can add your FAQ entries here, thanks
Discussion
i searched the site but i cant find how to install it in ubuntu 11.04
can anybody say it
thz in advance
I am a linux user who has the necessity to realize a gallery written in Flash for a website.
I need to import images dinamically, in order to handle a large number of photos.
I'm using Swfmill and mtasc but I have problem importing an xml resource file.
Here is my code:
**Swfmill xml file:**
''<?xml version="1.0" encoding="UTF-8" ?>
<movie version="8" width="600" height="300" framerate="30">
<background color="#ffffff"/>
<frame>
<clip import="Classes.swf"/>
<library>
<textfield id="Textfield" width="200" height="50" size="20" color="#ffffff" text="CIAO COCO!" font="vera" />
<clip id="Background" import="images/foo.jpg" class="Ship" />
<clip id="Hellobox" class="Load" >
<frame>
<place id="Background" name="background" depth="1"/>
<place id="Textfield" name="textfield" depth="5"/>
</frame>
</clip>
</library>
<place id="Hellobox" name="hellobox" />
</frame>
</movie>''
**The reader class:**
''class Load extends MovieClip
{
var textfield;
var data;
function Load ()
{
textfield.text = string;
var myXML:XML = new XML();
myXML.ignoreWhite=true;
myXML.load("gallery.xml");
myXML.onLoad = function(success) {
if ( success ) {
data = trace (myXML);
} else {
data = "error reading xml file";
}
}
textfield.text = data;
}
}''
**My XML resource file:**
''<gallery>
<image name="school">image1.jpg</image>
<image name="garden">image2.jpg</image>
<image name="shop">image3.jpg</image>
</gallery>
''
I had a large number of tests and red documentation on the web, but I can't find the error.
Every time I try to read the file or a part of it the answer is "undefined".
Thank you for your patience.
Silvio