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

André Bargull andre.bargull at udo.edu
Sat Sep 13 02:11:22 PDT 2008


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://www.openlaszlo.org/mailman/listinfo/laszlo-dev>
>   



More information about the Laszlo-user mailing list