Skip to content

Instantly share code, notes, and snippets.

@iYOYi
Created February 25, 2014 18:16
Show Gist options
  • Select an option

  • Save iYOYi/9214613 to your computer and use it in GitHub Desktop.

Select an option

Save iYOYi/9214613 to your computer and use it in GitHub Desktop.
package org.away3dmod.util.agal
{
public class AGALUtil
{
public function AGALUtil()
{
}
public static function traceInstructionsCount(owner:Object, str:String):void
{
var count:uint = 0;
var check_str:String;
for (var i:uint = 0; i < str.length; i++)
{
check_str = str.substr(i, 1);
if (check_str == "\n")count++;
}
trace("[AGAL]"+owner+": "+count+" instractions");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment