Groups | Blog | Home
all groups > macromedia players flash > january 2005 >

macromedia players flash : Javascript to Flash on Mac


kevin_nagurski
1/21/2005 4:19:30 PM
I need to be able to control a Flash movie using Javascript. I have looked all
over the place and found toutorials about how this can be achieved and they all
work in Windows, but do not work on any of the Mac OS X browsers (Safari,
Firefox etc) that I have tried.

The ability to do this is a pretty important feature of the project.

Is there a bug in the Mac implementation of the Flash plug-in that prevents
this functionality from working on Mac OS X?

Any and ALL help would be gratefully received.

The code I am currently using is as follows :


function hideMessageboard(){

if ( document.all ) {

document.all.interface_lower.style.visibility = 'visible';
document.all.messageboard.style.visibility = 'hidden';
document.all.msgbrd_iframe.src = 'safe.html';
document.all.theMovie.Play();
} else {

document.getElementById('interface_lower').style.visibility = 'visible';
document.getElementById('messageboard').style.visibility = 'hidden';
document.getElementById('msgbrd_iframe').src = 'safe.html';
document.getElementById('theMovie').Play();
}
}
Bentley Wolfe [Macromedia]
1/21/2005 5:44:53 PM
This is extremely browser dependent. Most Mac browsers just don't
support subsystems for plugin to javascript communication.

We're currently working on updating this technote with modern browser info:
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14159

What we'll probably add is this (in a nutshell):

Javascript communication definitely doesn't work on any Mach-O runtime
architecture based browsers:
Safari, Firefox, Moz 1.4+, NS 7.0+

But should works on -CFM runtime architecture:
IE 5+, NS 6.2 , Moz 1.0 - 1.2 only

This is something we can't control. If the browser doesn't build in a
dom to talk to plugins then there's nothing we can do..

--
Regards,

Bentley Wolfe
Senior Support Engineer, Macromedia
Flash Senior Escalation Engineer




[quoted text, click to view]

AddThis Social Bookmark Button