Friday, June 13, 2008

create your own ActionScript global function

Simply by declaring an ActionScript class at the root of Flex classpath with the same name as the function :

create ActionScript class : doLog.as

package {
public function doLog(message:String):void {
trace(message);
}
}


you can now simply use it anywhere in your application without any import statement.

No comments: