please look at this example I have made.
http://dev.simply.tv/static


The example works if I use swfobject 2.1 but breaks with 2.2 in IE7
and IE6

Has anybody else noticed flashvars broken in 2.2 ?

here is the flex app:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application
        xmlns:mx="http://www.adobe.com/2006/mxml";
        layout="absolute"
        applicationComplete="onCreation()"
        >
        <mx:Script>
                <![CDATA[
                        import mx.controls.Alert;
                        private function onCreation():void
                        {
                                
if(Application.application.parameters.playlist_id != null)
                                {
                                        var playlist_id = 
Application.application.parameters.playlist_id;
                                        Alert.show("PLAYLIST ID = 
"+playlist_id);
                                }
                                else
                                {
                                        Alert.show("NO FLASHVARS");
                                        //var s = 
ExternalInterface.call("getFlashvars");
                                        //trace(s)
                                }
                        }
                ]]>
        </mx:Script>
</mx:Application>



here is the html :

<html>

<head>

<script type="text/javascript" src="swfobject.js"></script>

<script type="text/javascript" src="swfaddress.js"></script>

<script type="text/javascript">

// <![CDATA[

var flashvars = {



        playlist_id : "25618049001"



};

var params = {

        scale: "noscale",

        AllowScriptAccess: "sameDomain",

        allowFullscreen: "true",

        bgcolor : "#222222"

};

var attributes = {

        id: "swf_div",

        name: "swf_div"

};



swfobject.embedSWF('FlashvarsTest.swf', "swf_div", "826", "350",
"9.0.115","expressInstall.swf", flashvars, params, attributes);

// ]]>

</script>

</head>

<body>

<div id="swf_div">

</div>



</body>

</html>




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to