1 gixxi Oct 18, 2009 02:44
3 nickelas Nov 24, 2009 22:29
I am looking into this aswell. I like to use swf-object for flash and it looks like thats what your code uses. Guess you have pasted the code in the head and have the javascript-file in place?
Anyone else successfully used swfobject?
4 super80 Dec 13, 2009 20:01
Yabba helped me with my last problem (thanks again) and now on to my next...
I am trying to do the same thing, add flash to the sidebar via swfobject.
I am using a free html sidebar widget with the following code:
<script src="/media/shared/js/swfobject.js"></script>
<div id="player">This text will be replaced</div>
<script type="text/javascript">
var so = new SWFObject("/media/blogs/comments/flash1.swf","mpl","165","200","8");
so.write("player");
</script>
The problem is that nothing is happening. "This text will be replaced" is constantly being displayed. I have my paths correct and I have the latest flash player installed so I know it isn't that. I don't think swfobject is even being called..
Has anyone had any success with this? Any advice?
5 super80 Dec 13, 2009 20:58
OK, got it working. However, I had to change the former swfobject code to:
<script src="/media/shared/js/swfobject.js"></script>
<div id="player">This text will be replaced</div>
<script>
swfobject.embedSWF("/media/blogs/comments/flash1.swf", "player", "165", "200", "9");
</script>
not sure why it doesn't like the previous code. But at least I can check the flash player version now. :o
You shouldn't have a problem slapping that in the free html widget ... for kicks remove the 'language="javascript"', it's obsolete ... if that's the solution then let me know and I'll do this weeks lottery :D
¥