The [Mixin] metadata causes the system manager to call the init
function early in the application start-up process, which won't happen
in a pure as3 project because there is no system manager.
On a basic level, you just need to call NoSmartyPantsLogging.init
( null ); somewhere near the start of your application.
If you want to automate this (I assume you do, for RobotLegs), you
could put the call to init in a static method, then force that to run
by assigning its return value to another static property. Place both
these in a class that is always included in your project. The code
will run at initialisation - even before the main swfs constructor -
as it sets the static property.
package ... {
public class ... {
private static var loggerSet:Boolean = setLogger();
private static function setLogger():Boolean
{
NoSmartyPantsLogging.init( null );
return true;
}
}
}
- Richard