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