PDA

View Full Version : Opera ignoring javascript functions invoked from Flash



PCGamre
December 25th, 2005, 11:29 PM
Yes, javascript, java, plug-ins are enabled.. i think every stinking thing is enabled.. ....Opera...... *sigh*... Still can't get my stuff to work. I checked a site (see link below) and swf to js communication doesn't work either.

Works in Netscape and IE. For example, go here:
http://www.permadi.com/tutorial/flashjscommand/

For those of you with Opera, please check that link above and tell me if the example flash document works (the javascript to flash/ flash to javascript communication). It just seems to not be working in Opera.

I figure, I'll start off here and see if anyone else is having the same problem.

ScriptFlipper
December 26th, 2005, 08:04 AM
this is what Opera 8.5 on Mac OS 10.4.3 tells me:

Flash Interaction with JavaScript
http://www.permadi.com/tutorial/flashjscommand/
Event thread: click
Error:
name: TypeError
message: Statement on line 30: Type mismatch (usually a non-object value used where an object is required)
Backtrace:
Line 30 of inline#1 script in http://www.permadi.com/tutorial/flashjscommand/
flashMovie.Play();
Line 1 of script
PlayFlashMovie();
At unknown location
[statement source code not available]

PCGamre
December 26th, 2005, 02:17 PM
Yup, that's pretty much the same thing I get with Opera 8.5 on Windows XP if I hit the PLAY btn on the html form. Thanks for checking, ScriptFlipper.



Flash Interaction with JavaScript
http://www.permadi.com/tutorial/flashjscommand/
Event thread: click
Error:
name: TypeError
message: Statement on line 30: Type mismatch (usually a non-object value used where an object is required)
Backtrace:
Line 30 of inline#1 script in http://www.permadi.com/tutorial/flashjscommand/
flashMovie.Play();
Line 1 of script
PlayFlashMovie();
At unknown location
[statement source code not available]

It's weird, I like Opera, but b/c of things like this, it's starting to really annoy me and I'm almost to the point where I'm gonna just say "forget it" and warn users that the site isn't fully functional in Opera. And BTW, my site passes HTML 4.01 and CSS validation... if that means anything at all......

PCGamre
January 8th, 2006, 11:43 AM
any other input?

PCGamre
May 18th, 2006, 12:25 AM
Well, well, well. Replying to my own thread.

For reference: http://www.mustardlab.com/developer/flash/jscommunication

This method has worked flawlessly for me. :thumb2:

foodpk
May 18th, 2006, 01:52 PM
Opera is quirky when it comes to flash. A shame really.

PCGamre
May 18th, 2006, 04:02 PM
Yeah, I agree.

Sometimes I feel like just saying forget about Flash, with HTML. With all the changes having to use SWFObject for IE and javascript for Opera-- sometimes all the setting up gets a little annoying. It shouldn't be so troublesome. But I guess that's results from a bunch of stubborn programmers who won't update their browsers to be a little more dynamic and well-rounded for the web. Oh well...