Well, no one responded to my question, but after several hours of banging my
head against a wall, I figured out the problem, so I thought I'd update
here.

I was missing the "name" attribute in the <embed> tag.  Apparently IE keys
of the "id" attribute of the <object> tag, but FF looks for "name".

On 6/3/06, Adam Pasztory <[EMAIL PROTECTED]> wrote:

Ack!  What happened?  This used to work, didn't it?

I'm getting an error with ExternalInterface in Firefox:
thisMovie("ExternalInterfaceExample").fromJS is not a function

This happens even when I try to run the simple example from the Flash 8
Essentials book.

Sorry if this is a stupid question, but I've been searching around for an
hour for an answer, and come up empty. :(

JS CODE:

        function thisMovie(movieName)
        {
               if (isIE())
               {
                 return window[movieName]
               }
               else
               {
                 return document[movieName]
               }
        }

    function isIE()
    {
            return navigator.appName.indexOf ("Microsoft") != -1;
        }

    // This function will call the ActionScript function "fromJS"
    function makeCall(str)
    {
         thisMovie("ExternalInterfaceExample").fromJS(str);
    }

    // This function "fromAS" will be called from ActionScript
    function fromAS(str)
    {
            document.inForm.inField.value = str;
    }

_______________________________________________
[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

Reply via email to