Select to view content in your preferred language

Passing Parameters to flex viewer using flashvars from HTML

806
1
01-24-2011 09:18 AM
SantoshDonka
New Contributor
All,

I am trying to Passing Parameters to flex viewer using flashvars from HTML.
I am using FlashVars in html page found in HTML Template Folder and i was trying to access the parameter from SearchWidget.mxml init method using : FlexGlobals.topLevelApplication.parameters.

But i am getting Nulls all the time. Is there any thing am i missing ?

Thanks for your help in advance.
Tags (2)
0 Kudos
1 Reply
RavinHasseea
Emerging Contributor
Hi,
I am trying something similar as below i.e. would like to pass the location of the config.xml as a parameter from index.html
I need to do this as our proxy server is unable to rewrite the location of the file.
When trying to read the parameter from ViewerContainer.mxml, I get null

var flashvarConfig:String = FlexGlobals.topLevelApplication.parameters.config;

if (flashvarConfig)
{
       configFile = flashvarConfig;
}

Any suggestions?


All,

I am trying to Passing Parameters to flex viewer using flashvars from HTML.
I am using FlashVars in html page found in HTML Template Folder and i was trying to access the parameter from SearchWidget.mxml init method using : FlexGlobals.topLevelApplication.parameters.

But i am getting Nulls all the time. Is there any thing am i missing ?

Thanks for your help in advance.
0 Kudos