Created
February 25, 2014 18:16
-
-
Save iYOYi/9214613 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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