Ruben’s blog

Ruben Swieringa on Actionscript and a whole lot of other stuff..

Ant and ASDoc

After my personal little tragedy with ASDoc I started looking into some Ant scripts. After trying out a few yesterday (without any success) I decided I’d write my own.
At the hand of the Ant script made by Darron Schall and the one by Dave Williamson I put together my own.
If you’re interested in using it, [...]

ASDoc generation in Flex

Yay and boo. Yay because ASDoc comes with the Flex installation. Boo because it’s command-line, what is that?
To top it off, you can’t have spaces in the sourcepath’s value, not even as nobrakingspaces ( ) or when urlencoded (%20).
Here’s an example:[code]asdoc -source-path C:\asdoc_temp -doc-classes com.rubenswieringa.CSSLoader com.rubenswieringa.CSSParser -main-title "CSSLoader documentation" -window-title "CSSLoader documentation" -output asdoc-output-temp[/code]You’ll be able [...]

CSSLoader

Today I made the last completion to my CSSLoader class, the class enables you to load CSS files into your flex application during runtime, a functionality Actionscript3.0 lacks. It’s actually as easy as this:
var loader:CSSLoader = new CSSLoader();
loader.load("mycssfile.css", "nameToBeGiven", displayObj1, displayObj2);
..where the amount of DisplayObjects (to which the style will be applied automatically after loading [...]