I'm neither a flash or java script expert, but I've been playing with
a project that is just making me nuts.

Simple enough in concept, I have input fields on a HTML form, that
when changed need to pass the new value into my flash file.

I am using this to imbed the flash inside the <head> tags of my html
page:

swfobject.embedSWF("Designer2.swf", "NewFlashpreviewer", "850", "350",
"9.0.0" , "/swfobject/expressInstall.swf", flashvars, params,
attributes);

Inside the flash I use:

import flash.external.ExternalInterface;
var eiEnabled:Boolean = ExternalInterface.addCallback(sendTextToFlash,
getTextFromJavaScript);

Back on my html page I have the functions:

function getFlashMovie(movieName) {
        var isIE = navigator.appName.indexOf("Microsoft") != -1;   return
(isIE) ? window[movieName] : document[movieName];
}
function sendToFlash(txt) {
        getFlashMovie("NewFlashpreviewer").sendTextToFlash(txt);
}

Then it is just a simple onChange event that calls
sendToFlash(this.value);

Here's the issue, this all works fine with IE 8 (in compatability mode
or not)... but it don't work at all with FireFox version 3.5.8

Free beer for anyone has a clue what the issue is or (more likely)
what it is I'm doing wrong.

Thanks for any help.

-- 
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en.

Reply via email to