Hmm, maybe some scope or timing issue?

 

Change this:

<%
String uid = (String)request.getParameter("uid");
String cid = (String)request.getParameter("cid");
%>

 

Put it in the script block where the flash version variables are declared,
and debug to make sure they are getting set correctly.

 

Also, you can get the passed in parameters directly, like this:

var _sPassedUrlParms = new String(document.location).split('?')[1];  //Get
any passed-in querystring parms

 

then pass that into the SF in the AC_FL_RunContent() function:

"flashvars", _sPassedUrlParms,

 

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: [email protected] [mailto:[email protected]] On
Behalf Of weezee49
Sent: Friday, May 01, 2009 2:30 PM
To: [email protected]
Subject: [flexcoders] Re: Accessing query string vars in Flex HTML wrapper
and passing them into Flex App

 






--- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com,
"Tracy Spratt" <tr...@...> wrote:
>
> You are already in a script block, so don't include the "<%" script
> directives, just build the string. And don't include the first "&":
> 
> "FlashVars", "uid=" + uid + "&cid=" + cid + "",
> 
> 
When I do this, I get 

Error: 'uid' is unefined

I'm using IE, with JS error messages turned on.



Reply via email to