In my xsl sheet I have the following code to load the flash object.
After loading the object (which works and play's), I want to correct
the height of the flash object. the flash objects are placed by site
managers in library's so I don't know their properties beforehand and
to determine them at loading time. So the documentation tells me to
use TGetProperty on the flash movie object. But doing this does not
work. The alert line produces nothing. When I put an string in the
alert line is show an alert. So there's something with the code that
retrieves the height.

Any ideas.....

// straight from xsl

        <div id="{$name}con" width="156px">
                        <div id="{$name}">Als u deze tekst ziet heeft u geen 
flash player.</
div>
                        </div>
                        <script type="text/javascript">
                        var flashvars = {};
                        var params = {};
                        params.allowscriptaccess = "always";
                        params.menu = "false";
                        params.quality = "low";
                        var attributes = {};
                        swfobject.embedSWF("<xsl:value-of select="$SafeLinkUrl" 
/>",
                        "<xsl:value-of select="$name" />", "100%", "100%",
                        "9.0.0", false, flashvars, params, attributes);


                        alert(document.getElementById("<xsl:value-of 
select="$name" /
>").TGetProperty("/", 8) + ''); //.TGetProperty("/", 9);
                        //document.getElementById("<xsl:value-of select="$name" 
/
>con").style.height  = document.getElementById("<xsl:value-of
select="$name" />").TGetProperty("/", 9);
                        </script>

// example output to browser

<div id="moviecon" width="156px">
                        <div id="movie">Als u deze tekst ziet heeft u geen 
flash player.</
div>
                        </div>
                        <script type="text/javascript">
                        var flashvars = {};
                        var params = {};
                        params.allowscriptaccess = "always";
                        params.menu = "false";
                        params.quality = "low";
                        var attributes = {};
                        swfobject.embedSWF("/movie.swf",
                        "<xsl:value-of select="movie" />", "100%", "100%",
                        "9.0.0", false, flashvars, params, attributes);


                        
alert(document.getElementById("movie").TGetProperty("/", 8) +
''); //.TGetProperty("/", 9);
                        //document.getElementById("moviecon").style.height  =
document.getElementById("movie").TGetProperty("/", 9);
                        </script>


--~--~---------~--~----~------------~-------~--~----~
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