Nathan,
SharedObject is an option I had not considered. I imagine that the
finished interface would work as hybrid of the Macromedia Flash
JavaScript Integration Kit, and the JSFCommunicator Library with
SharedObject as the communication layer. The JSFCommunicator Library
uses the .SetVariable to send in parameters to the movie and then in the
movie a component checks for new parameters on every frame. I'll
explore that possiblity some more.
Thanks,
Jeff
Nathan Derksen wrote:
Yah, I feel your pain. While I haven't had to specifically test for
Opera, I have had to deal with differences in LiveConnect between IE
and Mozilla on Mac (OS 9 and OS X) and Windows. It's truly a PITA.
A technique that I have used to pass data from JavaScript to Flash
include using a shim Flash movie that is created with JavaScript
every time a message needs to be passed, using FlashVars or URL
encoding to pass the variables into the shim clip, which would then
pass the message onto the main running Flash movie either through
LocalConnection or through SharedObject. If LocalConnection does not
work, SharedObject still should as there is no reliance on
LiveConnect that I know of. It just means the target movie needs to
poll for changes.
Nathan
http://www.nathanderksen.com
On Dec 30, 2005, at 9:20 AM, Jeff Mastropietro wrote:
Nathan,
Thanks, I was aware of both of the Macromedia methods, and I have
switched over to the Macromedia Flash JavaScript Integration Kit.
It has pretty poor documentation, and that is why I did not use it
initially. I need to support back to Flash 6, so ExternalInterface
is out of the question. :(
The sad news is that it still doesn't work in Opera on maemo. The
project I am working on needs to run on the new Nokia 770, which
runs maemo and uses Opera as the web browser. The flash player
version is 6,0,82,0 which should be sufficient to work with my
application which now is at version 6,0,65,0. However, it seems
that the LocalConnection class is not working, and as a result the
Macromedia Flash JavaScript Integration Kit method does not work.
I've found some indication that this is a problem with the flash
player plugin for Opera on Linux, and maemo. The Macromedia page
says it support Opera on Windows and Mac, but nothing about other
platforms.
Jeff
Nathan Derksen wrote:
I haven't seen an up-to-date chart either. You may be interested
in knowing that Macromedia already has two ways for you to do
this. The first is the Flash JavaScript Integration Kit:
http://weblogs.macromedia.com/flashjavascript/
This uses legacy techniques to make what you are doing work in
versions 8 to (I believe) 6, and works in Firefox 1.0+ and Opera 8+.
The other one is the Flash 8 ExternalInterface class. I have an
example up at http://www.nathanderksen.com/blog/?p=11 and you can
find the documentation at http://livedocs.macromedia.com/flash/8/
main/ wwhelp/wwhimpl/common/html/wwhelp.htm?
context=LiveDocs_Parts&file=00002200.html. Very slick, but the
browser support isn't as good and it only works in Flash 8.
Nathan
http://www.nathanderksen.com
On Dec 28, 2005, at 2:39 PM, Jeff Mastropietro wrote:
I'm working on a project using JavaScript to call functions in a
flash movie. I'm currently using the JSFCommunicator Library:
http://www.abdulqabiz.com/files/JSFC/JSFCommunicator%20Library.htm
What I would like to know is, is there a better object
available? Also, I'm guessing that all solutions are going to be
dependant on the .GetVariable and .SetVariable methods being
available to JavaScript. Does anyone know of a more up to date
compatability chart than this one?
http://www.macromedia.com/cfusion/knowledgebase/index.cfm? id=tn_14159
More specifically, I need to know compatability with Mozilla and
Opera browsers.
Thanks,
Jeff
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders