[Laszlo-user] [Laszlo-dev] How do I read the app query args in swf9?

Max Carlson max at openlaszlo.org
Wed Sep 17 08:35:44 PDT 2008


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 <andre.bargull at udo.edu 
> <mailto:andre.bargull at udo.edu>> 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
> hminsky at laszlosystems.com <mailto:hminsky at laszlosystems.com>
> 
> 

-- 
Regards,
Max Carlson
OpenLaszlo.org



More information about the Laszlo-user mailing list