PDA

View Full Version : JavaScript, ExternalInterface, and Safari


Linnium
02-21-2008, 08:40 PM
Hello,

I have scripts set up so that JavaScript can call a function in Flash using ExternalInterface.addCallBack(). Everything works in IE7 and FireFox on a PC, and in FireFox on the Mac, but not Safari. I have not yet been able to determine if Safari is unable to make function calls in Flash, or if Safari is able to, but not able to get browser height and width information and pass it to this function.

Does anyone know of known issues/work around for these types of issues? Please advise.

Thanks!

sophistikat
02-21-2008, 08:51 PM
can you please test/play around with the video player on http://www.cmt.ca

Linnium
02-21-2008, 09:14 PM
can you please test/play around with the video player on http://www.cmt.ca

What does this have to do with my original post? Please post these requests in he proper forums. Thank you.

lporiginalg
02-22-2008, 03:56 AM
I don't know if this is the same issue but when I made a flash movie that used javascript with fscommand I found that safari wouldn't work. What I ended up doing was making separate version of the flash movie that used getURL to call the javascript and then in the webpages some javascript that did a browser check and replaced the normal movie with the getURL movie if the browser was found to be safari.

oh man I totally didn't read your post carefully enough, I don't think this will help you, sorry.

Linnium
02-22-2008, 06:52 PM
LOL, it's cool. Question though: doesn't getURL basically refresh the browser? I remember testing using that first before moving on to ExternalInterface, and I seem to remember that happening.

By the way, everyone: The script I wrote works on Safari for PC, just not Safari for Mac.

lporiginalg
02-23-2008, 12:21 AM
No using getURL to call javascript doesn't refresh the browser, but it makes a clicking sound in IE which is why I didn't want to use it except in safari.

Linnium
02-23-2008, 01:48 AM
Ok, well, that's all well and good, but it does not solve my problem. I wish to have JavaScript call a function in Flash, not the other way around. I've already got that working, but it's not working on Safari for Mac.

sophistikat
02-26-2008, 08:06 PM
What does this have to do with my original post? Please post these requests in he proper forums. Thank you.

The video player uses ExternalInterface