Forum Moderators: open
..
To ensure a control is interactive when it is loaded, use one of the following techniques.
The following example uses document.write to load a control dynamically.
// HTML File
<html>
<body leftmargin=0 topmargin=0 scroll=no>
<script src="Embed.js"></script>
</body>
</html>
// embed.js
document.write('<embed src="examplecontrol">')
I haven't tried it yet, but I wonder if upgrading the flashobject JS file might fix the problem automagically. The flashobject homepage seems to say so...
And this blog post has some other good ideas for Quicktime, etc...
Later,
Chris.
[edited by: jatar_k at 4:11 pm (utc) on May 4, 2006]
[edit reason] no urls thanks [/edit]
I use Flash to create interactive learning programs for my site. My Flash background is pretty good but I lack experience with basic web design, javascript, etc. I read the article on activating ActiveX controls but I don't understand it fully. In the document.write example, it includes a file called embed.js. Could someone please explain to me what that is? How do I create or get that file?
Thanks for your help.
After a flashmovie I add this:
<script type="text/javascript" src="../script/fixit.js"></script>
Which consists out of this script:
var objectElements = document.getElementsByTagName("OBJECT");
for (var i = 0; i < objectElements.length; i++) {
if (objectElements[i].getAttribute("data")) objectElements[i].removeAttribute("data");
objectElements[i].outerHTML = objectElements[i].outerHTML;
objectElements[i].style.visibility = "visible";
}
I did not write it. This method and other methods can be found here:
[robertnyman.com...]
This too has been annoying me for a few weeks now, it's affected loads and loads of major websites!
Last night however I found another way around it.
Please see my post in the browsers section for more...
[webmasterworld.com...]
Paul :)