xleff2as is a automization tool for generating AS 2.0 stubcode for XLEFF. It parses XLEFF documents an generates the corresponding AS code for each component instance.
Some background:
XLEFF generates all event handler for each component instance automaticaly. This is very usefull and saves a lot of time. You just have to follow some naming conventions in order to access the events.
For example:
In your XLEFF-doc you declare a button instance named “TestButton” with someting like this:
<button name=”TestButton” lbl=”Test”>
If you now would have access to the buttons “click” event, you have to write this as-code:
function onTestButton_Click(evtObj:Object):Void
{
trace(evtObj.target._name + " has been clicked”);
}
This is quite easy, but its also easy tho make typing errors :+) Also its sometimes boring to write all this stubcode for each event. In larger project it can be painfull too to rename instances an its event handlers.
Therefore i found it would be nice to have tool which parses the XLEFF-doc an generates the correct stubcode for each event handler automaticaly.
... the idea of xleff2as was born !
comming soon ...
You can watch a little video i made, which shows the workflow of xleff2as. In this video i simply modify a demofile of Antonio and add a new button instance to it. After that i generate the stubcode for the buttons event handler with xleff2as. At last i batch complie the whole stuff with mtasc and our modified XLEFF framework which we named as xleff4mtasc.
You can watch the flv video here (~10.6mb).
... comming soon
Jan Viehweger, 3Kopf
Halle/Saale (Germany)