As if SWFObject wasn't easy enough to use on its own, i created a little helper js file to use with it, it's like a little 'cheat sheet'. It lists all the possible variables and parameters that need to be set for SWFObject, and also lists all the possible parameters for the object/embed tags. I just created this so you don't need to go searching through any docs (either SWFObject's or macrome adobe's) to find the information you need.
Download here: js_swfo_helper.zip
Usage: All you're doing is including is including the swfobject_helper.js file in place of the the normal swfobject embedded script, so this:
-
<script type="text/javascript">
-
var so = new SWFObject("movie.swf", "mymovie", "200", "100", "7", "#336699");
-
so.write("flashcontent");
-
</script>
turns into this:
-
<script type="text/javascript" xsrc="swfobject_helper.js"></script>
Then you just crack open the swfobject_helper.js file and set any parameters you need.
Sorry, I don't see how that's easier
Your method just adds another file to keep track of.