PageRenderTime 29ms CodeModel.GetById 17ms app.highlight 9ms RepoModel.GetById 1ms app.codeStats 0ms

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