On 9/8/06, yaagcur <[EMAIL PROTECTED]> 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 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to