<br><br><div class="gmail_quote">On Tue, May 12, 2009 at 2:56 PM, Gregory Denton <span dir="ltr">&lt;<a href="mailto:greg.denton@gmail.com">greg.denton@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Revisiting this topic searching for cleaner SOLO REST support: I&#39;m not<br>
a Flash programmer so don&#39;t know the lingo here, but...<br>
<br>
Is is possible to &quot;run in the AIR player environment&quot; with a<br>
laszlo-compiled app? How is this done? What are the other<br>
benefits/drawbacks?</blockquote><div><br></div><div>I haven&#39;t tried running with the AIR runtime yet. I am not sure whether the lzc compiler would need to be tweaked to link against some extra libraries, I&#39;d need to look at the AIR documentation and see how</div>
<div>they invoke the flex compiler. </div><div><br></div><div><br></div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
<br>
Alternatively, has anyone had any luck integrating AJAX calls outside<br>
laszlo with a laszlo-compiled app?<br></blockquote><div><br></div><div>That&#39;s an interesting idea. I suppose if you wanted to pass XML data from the browser javascript into the Flash application, you&#39;d have to pass it as a string, and parse it in the Flash player. </div>
<div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Thanks.<br>
<div><div></div><div class="h5"><br>
On Mon, Mar 2, 2009 at 3:51 PM, Henry Minsky &lt;<a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a>&gt; wrote:<br>
&gt; In the DHTML runtime, you may use any REST request method.<br>
&gt;<br>
&gt; The Flash 8 player  just does not natively  support anything besides<br>
&gt; GET and POST,and it appears that flash 9/10 won&#39;t do PUT or DELETE<br>
&gt; either, unless you are running in the AIR player environment.  For the<br>
&gt;  Flash 9 player in a regular browser, it appears to be limited to GET<br>
&gt; and POST, at least according to how I read the AS3 documentation.<br>
&gt;<br>
&gt; Note however, , if your application is making proxied request rather<br>
&gt; than a SOLO request, the proxy server (LPS) can perform the REST PUT<br>
&gt; or DELETE methods. So if you are willing to deploy your application<br>
&gt; with proxied<br>
&gt; data requests, then you could use these methods in a Flash application.<br>
&gt;<br>
&gt; [regarding the Flash 9 player, here&#39;s what the AS3 docs say for<br>
&gt; flash.net.URLRequest]<br>
&gt;<br>
&gt; method  property<br>
&gt; method:String  [read-write]<br>
&gt; Language Version :      ActionScript 3.0<br>
&gt; Runtime Versions :      AIR 1.0, Flash Player 9<br>
&gt; Controls the HTTP form submission method.<br>
&gt;<br>
&gt; For SWF content running in Flash Player (in the browser), this<br>
&gt; property is limited to GET or POST operation, and valid values are<br>
&gt; URLRequestMethod.GET or URLRequestMethod.POST. For content running in<br>
&gt; Adobe AIR, if the content is in the application security domain, you<br>
&gt; can use any string value; otherwise (if the content is not in the AIR<br>
&gt; application security domain) you are still restricted to using GET or<br>
&gt; POST.<br>
&gt;<br>
&gt; Note: If running in Flash Player and the referenced form has no body,<br>
&gt; Flash Player automatically uses a GET operation even if the method is<br>
&gt; set to URLRequestMethod.POST.<br>
&gt;<br>
&gt; The default value is URLRequestMethod.GET.<br>
&gt; On Mon, Mar 2, 2009 at 5:19 PM, doug livesey &lt;<a href="mailto:biot023@gmail.com">biot023@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Hi -- from scouting around the net, it looks like maybe Laszlo won&#39;t support<br>
&gt;&gt; proper REST, as it doesn&#39;t support any verbs apart from GET and POST.<br>
&gt;&gt; Is that correct?<br>
&gt;&gt; How are people getting around it?<br>
&gt;&gt; I&#39;m a Rails developer, and for me to be able to embrace Laszlo, I&#39;ll really<br>
&gt;&gt; *need* REST.<br>
&gt;&gt; Cheers,<br>
&gt;&gt;    Doug.<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Henry Minsky<br>
&gt; Software Architect<br>
&gt; <a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a><br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Henry Minsky<br>Software Architect<br><a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a><br><br><br>