[SWFObject] Calling AS Functions from JavaScript using SWF Object

Geoff Stearns geoff at deconcept.com
Wed Oct 11 10:37:47 PDT 2006


the important part is how you get the reference to the swf...

swfobject uses the same id whether or not it uses an object or an  
embed tag to insert the flash content, so it makes it easy.

this code:

if (navigator.appName.indexOf("Microsoft") != -1) {

flash = window.menubar;

}

else {

flash = window.document.menubar;



can be replaced by:



flash = document.getElementById("menubar");



and the rest of your code should be fine.







On Oct 11, 2006, at 1:24 PM, Luke DeWitt wrote:

> if (navigator.appName.indexOf("Microsoft") != -1) {
> flash = window.menubar;
>
> }
>
> else {
>
> flash = window.document.menubar;

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deconcept.com/pipermail/swfobject-deconcept.com/attachments/20061011/4e78d614/attachment-0005.htm>


More information about the Swfobject mailing list