在 Flash Builder 4 中调试时如何使用 URL 参数? [英] How can I use URL parameters while debugging in Flash Builder 4?

查看:21
本文介绍了在 Flash Builder 4 中调试时如何使用 URL 参数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 Flash Builder 4 中调试时使用 URL 参数?

How can I use URL parameters while debugging in Flash Builder 4?

推荐答案

修改你的 html 模板

在您项目的html-template"目录中打开index-template.html"并修改以下代码行以满足您的需要:

In the "html-template" directory in your project open "index-template.html" up and modify the following lines of code to suite your needs:

var flashvars = {};
if (swfobject.getQueryParamValue("foo") && swfobject.getQueryParamValue("abc")) {
    flashvars.foo = swfobject.getQueryParamValue("foo");
    flashvars.abc = swfobject.getQueryParamValue("abc");
}

请注意,这是针对 Flex 4 SDK 项目.

Please note that this is for a Flex 4 SDK project.

可以在此处找到更多详细信息:SWFObject文档

Further details may be found over here: SWFObject docs

这篇关于在 Flash Builder 4 中调试时如何使用 URL 参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆