I'm wondering what steps I would need to take to use swfobject with
code such as this:

<html><body>
<h1>Test</h1>
<div id="container"></div>
<script>
var contentType = "swf";
var content = document.createElement("div");
content.id = "content-div";
switch (contentType) {
  case "swf":
    swfobject.embedSWF( "/path/to/flash.swf", "MySwfSlide", 500, 350,
"9.0.0", "/path/to/expressinstall.swf", flashVars, flashParams,
flashAttributes);
    break;
  case "somethingelse":
    // there is other code here that executes based on the contentType
variable,
    // it's not just flash content that can go here.
    break;
}
document.getElementById('container').appendChild(swfSlide);
</script>
</body>
</html>

currently, it just seems to come up empty. I thought about setting it
up when the div got loaded, but that doesn't even seem to execute:
content.onload = function() {swfobject.embedSWF( "/path/to/flash.swf",
"content-div", 500, 350, "9.0.0", "/path/to/expressinstall.swf",
flashVars, flashParams, flashAttributes)};


Any ideas?
--~--~---------~--~----~------------~-------~--~----~
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