Christian wrote:
I'm trying to rewrite some tracking functionality that I have utilizing
external .js files and I can't seem to use the external API unless the
JavaScript function is on the page in between the script tags.
Can you do this with external .js files? If so, is there somewhere you
can point me?
I don't know, sorry. :(
I do know that there are great browser dependencies with this work...
the Flash "externalInterface" commands apparently hook into the new
"scriptable plugins" interface for Firefox, Opera and Safari, as well as
the different methodology for ActiveX Scripting in Microsoft's browser
for Windows. Here's the source page for the new API:
http://www.mozilla.org/projects/plugins/npruntime.html
Now, how do the various browsers implement this, and what
beyond-the-spec differences do they have? That's something that I don't
know that anyone has documented. It could be that *all* browsers don't
recognize external .JS files for browser-to-plugin and/or
plugin-to-browser messages, or it could be that just *some* have that
distinction... I don't yet know of any pages from the browser vendors
which discuss usage issues, much less a cross-browser reference like a
"css differences" or "dom differences" type of guide.
Best tip I could offer right now would be to test some simple functions,
in barebones JS & SWF, just to rule out any authoring complications.
Testing it across a few browsers would be the next step. But, as with
any multi-engine work, finding the differences between implementations
is a tricky unmentioned cost. Wish I had something better, but the above
is the best I've got on this subject right now.
jd
--
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com