<?xml version="1.0" encoding="UTF-8"?>
<wiki>
  <body>&lt;object width=&quot;550&quot; height=&quot;400&quot; id=&quot;repl&quot;&gt;
&lt;param name=&quot;movie&quot; value=&quot;http://aemon.com/file_dump/repl.swf&quot; /&gt;
&lt;param name=&quot;quality&quot; value=&quot;high&quot; /&gt;
&lt;param name=&quot;bgcolor&quot; value=&quot;#DDDDDD&quot; /&gt;
&lt;param name=&quot;salign&quot; value=&quot;tl&quot; /&gt;
&lt;embed src=&quot;http://aemon.com/file_dump/repl.swf&quot; salign=&quot;tl&quot; bgcolor=&quot;#DDDDDD&quot; width=&quot;550&quot; height=&quot;400&quot; name=&quot;repl&quot; /&gt;
&lt;/object&gt;
&lt;p&gt;&lt;br/&gt;&lt;br/&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The goal&lt;/strong&gt; of this guide is to get up and running with a las3r repl as quickly as possible. We should end up with a .swf file just like the one embedded &lt;strong&gt;above&lt;/strong&gt;. Here&amp;#8217;s the main class for our simple AS3 project:&lt;br /&gt;
&lt;pre&gt;&lt;br /&gt;
package{&lt;/p&gt;
&lt;p&gt;import flash.display.Sprite;&lt;br /&gt;
	import com.las3r.repl.Repl;&lt;/p&gt;
&lt;p&gt;public class Las3rTest extends Sprite{&lt;/p&gt;
&lt;p&gt;public function Las3rTest(){&lt;br /&gt;
			var repl:Repl = new Repl(500, 400, stage);&lt;br /&gt;
			stage.addChild(repl);&lt;br /&gt;
			repl.evalLibrary(&amp;#8220;(defn say-hello [] (println \&amp;#8221;Hello World\&amp;#8220;))&amp;#8221;);&lt;br /&gt;
		}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;br /&gt;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Next, grab the las3r.swc from the &amp;#8216;dist&amp;#8217; folder of the las3r distribution. Assuming we&amp;#8217;ve got the Flex tools installed, we can now compile our swf.&lt;/p&gt;
&lt;pre&gt;
mxmlc -library-path+=PATH_TO_SWC/las3r.swc Las3rTest.as
&lt;/pre&gt;
&lt;p&gt;You should now have Las3rTest.swf. Launch this swf and you&amp;#8217;ll see a las3r repl. &lt;br /&gt;
Input &amp;#8216;(say-hello)&amp;#8217; and press enter to call the function we defined.&lt;/p&gt;
&lt;p&gt;Have a look at &lt;a href=&quot;http://github.com/aemoncannon/las3r/blob/master/src/lsr/las3r.core.lsr&quot;&gt;the core library&lt;/a&gt; for more functions.&lt;/p&gt;</body>
  <created-at type="datetime">2009-11-23T16:27:29-08:00</created-at>
  <id type="integer">189402</id>
  <permalink>quick-start</permalink>
  <repository-id type="integer">52587</repository-id>
  <title>Quick Start</title>
  <updated-at type="datetime">2009-04-17T14:21:56-07:00</updated-at>
  <user-id type="integer">7484</user-id>
</wiki>
