AIR 应用程序和 HTML 传递参数

发布于 2024-12-27 10:18:23 字数 114 浏览 4 评论 0原文

我有一个从网页下载的 AIR 应用程序。 为了下载该应用程序,必须登录。 我希望用户第一次打开应用程序时能够访问已登录的 userId。

有什么方法可以传递该信息吗?

谢谢, 拉杜

I have an AIR application that is downloaded from a webpage.
In order to download the application, one must be logged in.
I would like the first time the user opens the application, to be able to acces the userId that was logged in.

Is there any way do pass that information?

Thanks,
Radu

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

你不是我要的菜∠ 2025-01-03 10:18:23

可以修改 AIR 安装标记,然后通过浏览器调用事件传入参数。

http: //archive.davidtucker.net/2008/01/10/air-tip-5-passing-arguments-to-an-application-on-install/

It is possible to modify the AIR install badge and then pass in parameters through the browser invocation event.

http://archive.davidtucker.net/2008/01/10/air-tip-5-passing-arguments-to-an-application-on-install/

七颜 2025-01-03 10:18:23

要将参数传递给 Air 动画,请在 html 对象中使用“flashvar”参数。

<object ...>
       <param name="movie" value="my_animation.swf?random=23887675198100972" />
        <param name="FlashVars" value="value1=x&value2=y" />
        ...
        <embed src="/my_animation.swf" FlashVars="value1=x&value2=y" ...> 
        </embed>
</object>

然后在您的 Air 应用程序中,您可以使用以下方法获取这些参数值:

Application.application.parameters['value1']

To pass parameters to your Air animation use a 'flashvar' param in your html object.

<object ...>
       <param name="movie" value="my_animation.swf?random=23887675198100972" />
        <param name="FlashVars" value="value1=x&value2=y" />
        ...
        <embed src="/my_animation.swf" FlashVars="value1=x&value2=y" ...> 
        </embed>
</object>

then in your Air application you can get these params values using :

Application.application.parameters['value1']
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文