Hello i am new to swfObject, a very handy scripts i must say , but i have bumped into some questiuons , that nobody on flash could of answer
i have 2 - 3 swf moveis and variables for them that i need to switch dinamicly is there a way to do it?
var so = new SWFObject("file.swf", "sotester", "300", "300", "9", "#FF6600"); so.addVariable("flashVarText", "text here"); so.write("flashcontent");
how to replace it with
var so = new SWFObject("file_1.swf", "sotester", "300", "300", "9", "#FF6600"); so.addVariable("flashVarText", "text here 2"); so.write("flashcontent");
your best bet would be to use an iframe and just load a new page into it with the new swf. some browsers won't release the plugin from memory correctly if you do it with pure javascript.
Hello. I need to do something slightly similar, except I just need to update a parameter. Here's the situation:
I've been asked to create a kind of widget that can be dynamically inserted into a page without having to mess with anything inside the body tag. The widget will contain a flash object that needs to sit on top of existing flash objects. The vast majority of the pages I've seen so far already use swfobject for their flash embedding, and they're actually using the same inline js for every page.
So the only thing I need to change is wmode = "window" to wmode = "opaque"...:)
I've gotten it to work in Mozilla just fine as you would imagine, but in IE, I've managed to get the wmode changed but only after the swf has loaded. Whoop de doo.
Any suggestions -- aside from having the client manually update one line of code (this is actually going to be my recommendation but a backup would be helpful).
after the swf has loaded? wmode doesn't work like that, you have to set it in the object/embed tag when you embed the swf. if you try to set it after, it will probably be ignored.
what you want to do is, set the bottom swf to wmode=opaque, and leave the top swf's wmode as the default.