Hello Henry, <div><br></div><div>thank you very much for trying the code. I tried several things, and realized that everythings works OK when I use the button (as in your example). </div><div><br></div><div>But when I try to automatically execute the perms.doRequest on init, it does not work. </div>
<div><br></div><div>Is  there a way to automatically execute perms.doRequest after finishing loading?</div><div>Which is the best way of doing this. </div><div><br></div><div>Thank you very much. </div><div><br></div><div>
Lucas. </div><div><br><div class="gmail_quote">On Sat, Jan 23, 2010 at 6:52 PM, Henry Minsky <span dir="ltr">&lt;<a href="mailto:henry.minsky@gmail.com">henry.minsky@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;">
Note, I am using the HttpFox plugin to trace the HTTP request from the Flash player<br><br><div class="gmail_quote">2010/1/23 Henry Minsky <span dir="ltr">&lt;<a href="mailto:henry.minsky@gmail.com" target="_blank">henry.minsky@gmail.com</a>&gt;</span><div>
<div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">I&#39;m not able to reproduce the problem you are reporting.<br><br>I used the following test case<br>

<br>&lt;canvas proxied=&quot;false&quot; oninit=&quot;canvas.sprite.setBGColor(null);&quot; debug=&quot;true&quot;&gt;<br><br>    &lt;attribute name=&quot;prof&quot; type=&quot;string&quot; value=&quot;&quot;/&gt;<br>    &lt;attribute name=&quot;data_url&quot; type=&quot;string&quot; value=&quot;BADVALUE&quot;/&gt;<br>

<br>    &lt;method name=&quot;init&quot;&gt; <br>        canvas.prof = lz.Browser.getInitArg(&#39;prof&#39;); <br>        if(canvas.prof) {<br>            canvas.setAttribute(&#39;data_url&#39;,&#39;/trunk/xml/request_key/&#39; + canvas.prof+&quot;.xml&quot;);<br>

        }<br>    &lt;/method&gt; <br><br>    &lt;dataset id=&quot;perms&quot;<br>             name=&quot;perms&quot;<br>             type=&quot;http&quot;<br>             autorequest=&#39;false&#39;<br>             ondata=&quot;Debug.info(this.serialize())&quot;<br>

             src=&quot;${canvas.data_url}&quot;<br>             /&gt;<br><br>    &lt;button onclick=&quot;perms.doRequest()&quot;&gt;dorequest&lt;/button&gt;<br><br>&lt;/canvas&gt;<br><br><br>and fetched it with the URL <br>

<a href="http://127.0.0.1:8080/trunk/test/foo/player.lzx?prof=foo&amp;debug=true&amp;lzr=swf9" target="_blank">http://127.0.0.1:8080/trunk/test/foo/player.lzx?prof=foo&amp;debug=true&amp;lzr=swf9</a><br><br>When I click the button, the correct request is issued, to <br>

GET /trunk/xml/request_key/foo.xml?__lzbc__=1264279916554 HTTP/1.1<br><br>Does this test case work for you? <br><br><br><div class="gmail_quote">On Sat, Jan 23, 2010 at 1:43 PM, Lucas Lain <span dir="ltr">&lt;<a href="mailto:lucas.lain@gmail.com" target="_blank">lucas.lain@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"><div>I renamed everything to prof_p, but still can make it to work. <div><br></div>
<div>Did anyone have a workaround for this?</div><div><br></div><div>I just want to send some information to the webserver from the flashclient. </div>
<div><br></div><div>Best.</div><div><br></div><div>L.</div><div><br></div><div><br></div></div><div><div><div></div><div><br><div class="gmail_quote">On Sat, Jan 23, 2010 at 11:04 AM, Henry Minsky <span dir="ltr">&lt;<a href="mailto:henry.minsky@gmail.com" target="_blank">henry.minsky@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">One thing that is important, you should probably  use a different query arg than &quot;profile&quot;, because that has a special<br>


meaning to the LPS server, it is used to enable the profiler  which is used to meter performance. <br><div><div></div><div>
<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"><div><br></div><div>Best.</div>
<div><br></div><div>L.</div><div><div><div></div><div><br><br><div class="gmail_quote">On Fri, Jan 22, 2010 at 1:14 AM, Lucas Lain <span dir="ltr">&lt;<a href="mailto:lucas.lain@gmail.com" target="_blank">lucas.lain@gmail.com</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
Please see both attached files. <div><br></div><div>The perms.doRequest is called from the view inside play_button.</div><div><br></div><div>I&#39;m using OL 4.7. The file is compiled to SWF9. </div><div><div><div></div>



<div>
<br><br><div class="gmail_quote">
On Fri, Jan 22, 2010 at 1:04 AM, Henry Minsky <span dir="ltr">&lt;<a href="mailto:henry.minsky@gmail.com" target="_blank">henry.minsky@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">





Where do you actually call the doRequest() method on the dataset?  Do you<br>call it manually?<br><br>If  the dataset is set to make the  request automatically, e.g., (the &#39;request&#39; attribute == true) then<br>the request might get made before the constraint updates. <br>






<br>Also, what runtime are you using? <br><div><div></div><div><br><br><br><br><br><div class="gmail_quote">On Thu, Jan 21, 2010 at 9:48 PM, Lucas Lain <span dir="ltr">&lt;<a href="mailto:lucas.lain@gmail.com" target="_blank">lucas.lain@gmail.com</a>&gt;</span> wrote:<br>






<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"><div>Hello Everybody, </div><div><br></div><div>I&#39;m trying to set a dataset url dynamically. The thing is that the dataset actually connects to the default data_url specified by default (&quot;/xml/request_key&quot;) and not the dynamic one (&quot;/xml/request_key/&quot; + canvas.profile).</div>







<div><br></div><div>When I check the value in the debug console, the value is set to the second, but actually connects to the first one. </div><div><br></div><div>When the oninit method is executed? after processing all ${} values? </div>







<div><br></div><div>Thanks in advance!</div><div><br></div><div>code:</div><div><br></div><div>&lt;canvas proxied=&quot;false&quot; oninit=&quot;canvas.sprite.setBGColor(null);&quot; debug=&quot;true&quot;&gt;</div><div>






<br>
</div><div>    &lt;attribute name=&quot;profile&quot; type=&quot;string&quot; value=&quot;&quot;/&gt;</div><div>    &lt;attribute name=&quot;data_url&quot; type=&quot;string&quot; value=&quot;/xml/request_key/&quot;/&gt;</div>







<div><br></div><div>    &lt;handler name=&quot;oninit&quot;&gt;</div><div>        canvas.profile = lz.Browser.getInitArg(&#39;profile&#39;);</div><div>        if(canvas.profile) {</div><div>            canvas.setAttribute(&#39;data_url&#39;,&#39;/xml/request_key/&#39; + canvas.profile);</div>







<div>        }</div><div>    &lt;/handler&gt; </div><div><br></div><div><div>    &lt;dataset id=&quot;perms&quot;</div><div>             name=&quot;perms&quot;</div><div>             type=&quot;http&quot;</div><div>             src=&quot;${canvas.data_url}&quot;</div>







<div>             /&gt;</div><div><br></div><div>...</div></div><br>-- <br><font color="#888888">Lucas<br>
</font></blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>Henry Minsky<br>Software Architect<br><a href="mailto:hminsky@laszlosystems.com" target="_blank">hminsky@laszlosystems.com</a><br>





<br><br>
</font></blockquote></div><br><br clear="all"><br></div></div>-- <br>Lucas<br>
</div>
</blockquote></div><br><br clear="all"><br></div></div>-- <br>Lucas<br>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>Henry Minsky<br>Software Architect<br><a href="mailto:hminsky@laszlosystems.com" target="_blank">hminsky@laszlosystems.com</a><br><br><br>
</div></div></blockquote></div><br><br clear="all"><br></div></div>-- <br>Lucas<br>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>Henry Minsky<br>Software Architect<br><a href="mailto:hminsky@laszlosystems.com" target="_blank">hminsky@laszlosystems.com</a><br><br><br>
</blockquote></div></div></div><div><div></div><div class="h5"><br><br clear="all"><br>-- <br>Henry Minsky<br>Software Architect<br><a href="mailto:hminsky@laszlosystems.com" target="_blank">hminsky@laszlosystems.com</a><br>
<br><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Lucas<br>
</div>