The official way to do this in Laszlo is to use LzBrowser.getInitArg('key').
Henry Minsky wrote:
Thanks!!
On Sat, Sep 13, 2008 at 5:11 AM, André Bargull <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
All query arguments are stored in the "parameters"-object of the
stage's LoaderInfo [1].
---
<canvas debug="true" >
<handler name="oninit" ><![CDATA[
var params:Object = LFCApplication.stage.loaderInfo.parameters;
for (var key:String in params) {
Debug.write(key, params[key]);
}
]]></handler>
</canvas>
---
[1]
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/LoaderInfo.html
Does anyone know what the API is in as3 to access the query args
at runtime
of the currently running app?
In swf8, they just appear magically in the runtime as globals.
However, in
swf9, I don't know
how to write code to access them. Is there a new API for doing this?
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com <http://laszlosystems.com>
<http://www.openlaszlo.org/mailman/listinfo/laszlo-dev>
--
Henry Minsky
Software Architect
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
--
Regards,
Max Carlson
OpenLaszlo.org