I think this is "How can the various browsers talk to the Macromedia Flash
Player?"
Here's a weird URL with many screencaptures, but should list or link to the
Player's inbound API:
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?event=view&id=KC.tn_15683&extid=tn_15683&dialogID=7481736&iterationID=1&sessionID=96301dc81d7227e49115&stateID=0%200%207485611&mode=simple#jtfc
(I don't recall whether these offer external access to root-level or targeted
in-swf functions, and scanning these documents does not seem to quickly reveal
the answer as previous versions of these documents did.)
Browsers vary in their support. Netscape and Mozilla browsers were the ones who
*initiated* this kind of intercommunication. The material on the website
doesn't
seem as easy to navigate as in previous years, but current browser support
should be listed at least in the Release Notes for each Player:
http://www.macromedia.com/support/documentation/en/flash/releasenotes.html
Summary: Browser/plugin intercommunication has been noble in theory since 1996,
but still isn't really all that practical, unless you *know* your audience will
be in standard configurations of IE/Win, or Java-enabled Firefox, or both. This
may change in the future as new intercommunication APIs come on line:
http://www.mozillazine.org/talkback.html?article=4923
jd
--
John Dowdell . Macromedia Developer Support . San Francisco CA USA
Weblog: http://www.macromedia.com/go/blog_jd
Aggregator: http://www.macromedia.com/go/weblogs
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
Title: Message
What kind of examples are you looking for? Any specific
demand :)
-abdul
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] Sent: Friday, April 29, 2005
12:12 AMTo: flexcoders@yahoogroups.comSubject: RE:
[flexcoders] Is there a _javascript_ flashObj.callFunction(), like
setVariable?
So,
the browser has a problem with the casing? Are there any more examples of
this that anyone has found?
-Original Message-From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of
Matt HornSent: Thursday, April 28, 2005 8:55 AMTo:
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Is there a
_javascript_ flashObj.callFunction(), like setVariable?
Just one gotcha to watch out for... Mozilla doesn't
recognize getVariable/setVariable. It must be GetVariable/SetVariable (note
capital initial letter). IE will allow either one.
matt
Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Hi Tracy,
There is no callFunction(..) like method for flash activeX or plugin. But
there is setVariable(..) method.
Yes, you can set a variable or setter from Javascript using setVariable
function. I have create a example, it allows you to execute flex function
from javascript...
It's very basic example but you can adopt similar approach and do it more OO
way by creating classes in JS and AS...
1) FlexJSExample.jsp
<%@ taglib uri="FlexTagLib" prefix="mm" %>
Flex-JS Communication Demo
//this function return to Flash ActiveX Object or Plugin depending upon
browser
//it takes care for browser type and returns the proper reference.
//Accepts the id or name of
Title: Is there a javascript flashObj.callFunction(), like setVariable?
I believe you’re only allowed to
call setVariable. And yes you can create a setter and do it that way.
Matt
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]
Sent: Wednesday, April 27, 2005
9:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Is there a
_javascript_ flashObj.callFunction(), like setVariable?
Using
javasript in a custom HTML wrapper, Is there flashObj.callFunction(),
like there is a setVariable() method?
Or
will
setVariable() work with a setter method? (Hmm, surely I
can
create
a setter in mxml, right?)
Tracy
Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.