apache-flex - 如何在不使用任何 html 的情况下将参数发送到 swf?

标签 apache-flex flash actionscript-3 mxml

是否可以使用 SWFLoader 或类似工具将参数发送到 swf?

所以..我想创建 swf 加载器 (swf),它可以将一些 Application.application.parameters 发送到我要加载的 swf swf(通常从 html 发送到应用程序。)

如何做这样的事情?

最佳答案

您可以在 URL 中添加参数,有点像您将参数发送到脚本的方式:

/path/to/the.swf?param=value

它们将像常规 FlashVar 一样可从 ActionScript 获得,例如通过 Flex 中的 Application.application.parameters["param"],AS3 中的 LoaderInfo(this.root.loaderInfo).parameters["param"]_root .param 在 AS2 中。

关于apache-flex - 如何在不使用任何 html 的情况下将参数发送到 swf?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2354412/

相关文章:

actionscript-3 - 我应该用什么来在 as3 中加载音频而不是 load()?

actionscript-3 - JPEGEncoderOptions 未定义

android - 在 android webview 中使用 flash

actionscript-3 - 使用 Flex 调试消息?

mysql - 如何在 AS3 中使用 mx.rpc.Responder

actionscript-3 - 具有循环、不同名称和访问变量的 addChild

css - Flex4中看似简单的换肤问题;风格给人迪斯科效果

actionscript-3 - 在 Flash Player 11 中按 channel 分析声音

html - 在浏览器中查看时如何让我的 Flex 应用程序垂直滚动?

python - 反编译 .swf 文件以在 python 中获取图像