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

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

问题描述

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

修改html模板在项目的html-template目录中打开index-template.html并修改以下几行代码以满足您的需求: / p>

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



$ b $ p
$ b

请注意,这是一个Flex 4 SDK项目。



更多细节可以在这里找到: SWFObject文档


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

解决方案

Modify your html template

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");
}

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

Further details may be found over here: SWFObject docs

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

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