xleff2as

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.

xleff2as is a part of XLEFF TBX

Why?

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 !

Features

comming soon …

Demo

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).

Future

  • automatic recognition of suitable events for each component instance
  • interface improvements
  • alternitive .jsfl version for use inside the Flash IDE
  • AS3 support
  • source code online

License

… comming soon

Project Homepage

Credits

Jan Viehweger, 3Kopf
Halle/Saale (Germany)

Discussion

Enter your comment
 
 
xleff2as.txt · Last modified: 2007/06/15 05:27 (external edit)
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki