/src/com/adobe/utils/macro/Expression.as

https://bitbucket.org/HopeSky/mars_nd2d · ActionScript · 26 lines · 19 code · 6 blank · 1 comment · 1 complexity · 8d785c3345e4250e56301807dd94b071 MD5 · raw file

  1. package com.adobe.utils.macro
  2. {
  3. import com.adobe.utils.macro.VM;
  4. public class Expression
  5. {
  6. public function print( depth:int ):void { trace( "top" ); }
  7. public function exec( vm:VM ):void {
  8. trace( "WTF" );
  9. }
  10. protected function spaces( depth:int ):String
  11. {
  12. // Must be a clever way to do this...
  13. var str:String = "";
  14. for( var i:int=0; i<depth; ++i ) {
  15. str += " ";
  16. }
  17. return str;
  18. }
  19. }
  20. }