[Abdul Qabiz's Blog - India] On flexcoders, someone asked, how to get the URL parameters in a Flex 2.0 application? By URL parameter, I mean the query-string variables, as shown below.
http://yourserver/yourapp.swf?name=Joe&age=22 or http://yourserver/yourapp.mxml?name=Joe&age=22 (requires server in place)
name and age are the query-string variables.
You can get the values of the params using from mx.core.Application.application.parameters object, which contains the name-value pairs (hash-map).
If your SWF is embedded in a HTML wrapper, the solution is to use ExternalInterface class in Macromedia Flash Player 8(onwards) to invoke some JavaScript functions and extract the value in ActionScript.
[ Demo | Source | Read more... ]



is it possible to get the query string if it is embedded in HTML
use your brain when u ask a question, jerk!
first read the article.
I guess I should have made the post more clear. I will update the post with some more information
Prasanth… check it out now
ONLINE – DRUGSTORE!
PRICES of ALL MEDICINES!
FIND THAT NECESSARY…
VIAGRA, CIALIS, PHENTERMINE, SOMA… and other pills!
Welcome please: pills-prices.blogspot.com
NEW INFORMATION ABOUT PAYDAY LOANS!
Welcome please: payday-d-loans.blogspot.com
GOOD LUCK!
hfrmevj gkcyrh cnmka nusqp ohwcp qcazi jurmndcfl
Abstract: We describe the LHCb detector simulation application (Gauss) based on the Geant4 toolkit. The application is built using the Gaudi software framework, which is used for all event- processing applications in the LHCb experiment. The existence of an underlying framework allows several common basic services such as persistency, interactivity, as well as detector geometry description or particle data to be shared between simulation, reconstruction and analysis applications. The main benefits of such…
I am new to flex…
pls. i need ur assistance on this.
i have two flex mxml files.
I want to pass a variable from mxml a to another b, pls. how do i go about it. am really stuck here. pls. assist.
You have to use the ExternalInterface method when SWF is embedded in a html file, but for a standard SWF execution, application.parameters is better.
Then you can combine two methods to get urlParameters in all case like this :
private function getUrlParamaters():Dictionary
{
var urlParams:Dictionary = new Dictionary();
if (ExternalInterface.available)
{
var fullUrl:String = ExternalInterface.call(‘eval’, ‘document.location.href’);
var paramStr:String = fullUrl.split(‘?’)[1];
if (paramStr != null)
{
var params:Array = paramStr.split(‘&’);
for (var i:int=0; i < params.length; i++)
{
var kv:Array = params[i].split('=');
urlParams[kv[0]] = kv[1];
}
}
}
else
{
urlParams = Application.application.parameters;
}
return urlParams;
}