Re: [Flashcoders] Trying Again:External Interface API and External .js Files

2006-03-15 Thread John Dowdell

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.
___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] Trying Again:External Interface API and External .js Files[SOLVED]

2006-03-14 Thread Christian

I"m a complete idiot and get what I deserve for working late at night.

Always close your script tag and make sure partner developer actually 
puts the .js file on the server named as you thought and located where 
you thought.


what a tool

Christian wrote:

Hey Everyone,

I'm usually just in the background reading all the good information, 
but now I actually have a question I can't find the answer to.


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?


Any help one can provide would be much appreciated...

THanks,

Christian



___
Flashcoders@chattyfig.figleaf.com
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



___
Flashcoders@chattyfig.figleaf.com
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


[Flashcoders] Trying Again:External Interface API and External .js Files

2006-03-14 Thread Christian

Hey Everyone,

I'm usually just in the background reading all the good information, but 
now I actually have a question I can't find the answer to.


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?


Any help one can provide would be much appreciated...

THanks,

Christian



___
Flashcoders@chattyfig.figleaf.com
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