How can I use URL parameters while debugging in Flash Builder 4?
+1
A:
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
Ryan
2010-07-06 09:35:36
+2
A:
You can modify the url that is used when FB launches the project for debugging in the project properties. Just set your parameters there and them access them through the usual FlexGlobals.topLevelApplication.parameters.
James Ward
2010-07-06 11:18:25