I tried it, and it works nice. Thanks for the tip. It keeps the page cleaner.

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Adam Dorritie
Sent: Friday, September 08, 2006 9:21 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Problems getting started with flashvars and Application.application.paramete

 

On 9/8/06, yaagcur <[EMAIL PROTECTED]com> wrote:
> Thanks Adam - remarkably similar:) Not sure if that thread sorted Kyle
> out but I'm not quite clear how my HTML is falling short. How does the
> javascipt AC_FL_RunContent section need amending? The "src" and
> "flashvars" are already included

Franck already provided the answer, but I'll say this much. The HTML
<object> and <embed> are within the noscript portion of the page, in
other words the portion of the page which will be executed if
_javascript_ is not available. The normal path for processing is to run
the _javascript_
AC_FL_RunContent() function.

The reason you need to modify this is to include your own FlashVars,
in addition to the ones already passed by the default template. In my
case I use ColdFusion to dynamically insert FlashVars based upon the
Flex application which is running, but all you really have to do is
add your own variables. For example:

} else if (hasRequestedVersion) {
// if we've detected an acceptable version
// embed the Flash Content SWF when all tests are passed
AC_FL_RunContent(
"src", "myFlexAppName",
"width", "100%",
"height", "100%",
"align", "middle",
"id", "myFlexAppName",
"quality", "high",
"bgcolor", "#ffffff",
"name", "myFlexAppName",
"flashvars",'historyUrl=history.htm%3F&lconid=' + lc_id + '',
-----> Add something like this...
"flashvars",'myVar1=foo&myVar2=bar',
---->
"allowScriptAccess","sameDomain",
"type", "application/x-shockwave-flash",
"pluginspage", "http://www.adobe.com/go/getflashplayer"

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to