This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes Interfacing with SWF movie not working with firefox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Interfacing with SWF movie not working with firefox" Watch "Interfacing with SWF movie not working with firefox" New topic
Author

Interfacing with SWF movie not working with firefox

Joe Lemmer
Ranch Hand

Joined: Oct 24, 2008
Posts: 171
Hi Guys,

I want to use a flash input field on my web page, rather than a normal HTML textfield because I can add HTML styling to the contents.

So I have embedded my SWF movie into my web page and have used the ActionScript ExternalInterface to 'talk' to the rest of my website for which I'm using javascript. So basically all I want to do is at a certain point, press a button and the text content of the SWF movie (input box) will get assigned to a javascript variable which I can then use.

I have implemented this have tested it by just getting the contents of the input box to appear in my html paragraph with the id 'para'. It works if I am using IE and opera, but not with firefox, which I find very strange. I wonder if anyone can see where I am going wrong.

Here's my HTML code:



and here's my javascript code:



and finally, here are the relevant parts of the actionscript code:



Many thanks

Joe


OCPJP 85%
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Interfacing with SWF movie not working with firefox