ExternalInterface.addCallback("IsStatic",IsStatic) doesn't seem to work.

Continuation of this post on the forum here:
http://forums.Adobe.com/thread/885200?TSTART=0

I have some difficulty to the ajax result in flex... as an event so I need to keep the control in flex. what I understand, a reminder is necessary, so I set up a reminder with the flex parts here:

" < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 "
xmlns:s = "library://ns.adobe.com/flex/spark".
xmlns:MX = "library://ns.adobe.com/flex/mx".
xmlns:bridge = "bridge.*".
minWidth = minHeight = "955" "600" creationComplete = "application1_initializeHandler (event)" >

protected function application1_initializeHandler(event:FlexEvent):void
{
ExternalInterface.addCallback("IsStatic",IsStatic) ("EICallBack", EICallBack);

}
protected function EICallBack(Result:String)
{
output = result;
}

protected function button1_clickHandler (eventLMouseEvent): void)

{

ExternalInterface.call("saveglobalscore",score) ("ExecuteFunction", Value);

}

On the side of javascript
I created a function delegate
function ExecuteFunction (arr)

{

testFunction (arr). EICallBack (output) //where output is set to output = xmlHttp.responseText instead of the alert with a subsequent return output

}

but the EICallBack is never executed.
I looked at other examples, and they look quite similar. I don't know what I'm doing wrong.  Can anyone help?

What does ExecuteFunction (arr)?  It does not return the object containing the

Player?

Tags: Flex

Similar Questions

  • ExternalInterface.addCallback("IsStatic",IsStatic)

    I get an error 1065, which is a reference error.

    I have an html page that loads a flash swf file.

    the error is on the ExternalInterface.addCallback("IsStatic",IsStatic) statement.

    If I use a flash swf with code file in this file I have no problem with the external interface.  It communicates with

    the html page.

    If I take that same flash program and create a class (.as) file and put my code in the

    class file, I get the error.  If I comment on a statement in the file .as ExternalInterface.addCallback("IsStatic",IsStatic)

    There is no error.  Code in the .as file and all other functions work except the addcallback statement.

    I looked for a solution and looked at examples of code and it seems that I'm set up correctly.

    I tried on opera, ie, and chrome with the same results.

    is there a piece of the puzzle that I'm missing?

    Thank you

    not serious.

    I just added the sendToActionScript function in my .as flash file and the error disappeared

    I looked on my original flash program that had all the code in frame 1 and I got the function to call in

    Here, but not to add the function when I tried to create a document class.

    Totally my mistake and thank you for your help in pointing out my mistake.

    I really appreciate your help and for the forum.

  • JavaScript in IE6 for ExternalInterface.addCallback("IsStatic",IsStatic) errors

    I'm having a terrible time, get the bridge to work in IE6. (A working Firefox prototype took every 20 minutes).
    I use UFO ( http://www.bobbyvandersluis.com/ufo/) to load the .swf file. However, when it comes to the ExternalInterface.addCallback("IsStatic",IsStatic) in FABridge.as, IE throws opaque JavaScript errors: line 1, Char 22 syntax error. If I comment all ExternalInterface.addCallback("IsStatic",IsStatic) calls, IE gets beyond that, however, nothing works as well (which is not surprising). Have I missed something obvious with respect to IE?
    Any help would be appreciated.

    It seems that my code above not correctly set the object/@id on the Flash object. Once I added id: "graph" the UFO.create initialization parameter, everything went great.

  • Problem with ExternalInterface.addCallback("IsStatic",IsStatic)

    I am trying to add an ExternalInterface.addCallback("IsStatic",IsStatic) to get a string back to a javascript function so that I can put "visible" the title 'film clip' property to 'true '. Can someone tell me what I am doing wrong? Here is my code AS:

    Code:
    ExternalInterface.addCallback("sendToActionscript", getFromJavascript);
         function getFromJavascript(isClosed)
         {
              if (isClosed == "closed") {
              title.visible=true;
              }
         }

    .. and here's my javascript:

    Code:
    <script type="text/javascript">
    <!--
    //check for IE
    function getFlashMovie(movieName) {
      var isIE = navigator.appName.indexOf("Microsoft") != -1;
      return (isIE) ? window[movieName] : document[movieName];
    }
    function sendToActionscript(str)
    {
         //bigbook.swf is my embedded Flash file
         getFlashMovie("bigbook").sendToActionscript(str);   
    }
    //-->
    </script>

    .. What is called when a user clicks on a link, like this:

    Code:
    <a href = "#" onClick="sendToActionScript('closed');">click</a>

    Any help is greatly appreciated.

    you have a typo in your onClick:

     sendToActionscript
    
    is not the same as:
    
    sendToActionScript
    
  • JavaScript error when using ExternalInterface.addCallback("IsStatic",IsStatic) with cross-domain swf file

    How can I use ExternalInterface.addCallback("IsStatic",IsStatic) when using javascript server access (html) of server B (swf)? coz it showing error?

    Server A
    192.168.0.10/xxx/example.html
    ===========
    < object classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    ID = "MGSInsurances1" width = "960" height = "600".
    codebase =" http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" > "
    "" < param name = "movie" value = " http://192.168.0.22/MGS/flex/MGSInsurances1.swf" / >
    < param name = "quality" value = "high" / >
    < param name = "bgcolor" value = "#869ca 7" / >
    < param name = "allowScriptAccess" value = "always" / >
    "" < embed src = " http://192.168.0.22/MGS/flex/MGSInsurances1.swf" quality = "high" bgcolor = "# ca 869, 7.
    width = "960" height = "600" name = "MGSInsurances1" align = "middle".
    play = "true".
    Loop = "false".
    quality = "high".
    allowScriptAccess = "always".
    Type = "application/x-shockwave-flash".
    pluginspage =" http://www.adobe.com/go/getflashplayer_fr" > "
    < / embed >
    < / object >
    < script language = "javascript" >
    window. MGSInsurances1 = document.getElementById('MGSInsurances1');
    < /script >

    Server B
    192.168.0.22/mgs/Flex/MGSInsurances1.swf
    ==================

    Security.allowDomain("*");

    If (ExternalInterface.available)
    {
    ExternalInterface.addCallback("IsStatic",IsStatic) ("onchange", onchange);
    ExternalInterface.addCallback("IsStatic",IsStatic) ("datachange", datachange);
    }

    but javascript Error shows "Unknown name", how can I solve this problem? urgent! Anyone know this?

    I solved it! because I did not restart my server again! Again not error! Sorry to annoy everyone.

  • I dropped my iPhone 6s in the bathroom by accident and I was wondering if I could buy a new Apple for $299 if I bring him. However, the phone doesn't seem to work. Also I don't have apple care more.

    I dropped my iPhone 6s in the bathroom by accident and I was wondering if I could buy a new Apple for $299 if I bring him an Apple store. However, the phone doesn't seem to work. Also I don't have apple care more.

    You will pay full price for a new iPhone.

    Apple Care does not damage water still > liquid for iPhone or iPod is not covered by the warranty - Apple support

  • How can I remove the button from menu? The custom option doesn't seem to work for this.

    How can I remove the button from menu? [This IChing looking for three line on the toolbar icon].

    The tool bar Customize option doesn't seem to work, and it seems a waste to have a button that duplicates the menus. I would trade on the NoScript icon.

    Hi, I can not recommend that you do, but if you are really determined, this article can help.

  • We tried the window. ResizeTo and window. Methods MoveTo using javascript. It doesn't seem to work in version 9.0.1. Please suggest any alternative.

    Hello
    We tried the window. ResizeTo and window. Methods MoveTo using javascript. It doesn't seem to work in version 9.0.1. Please suggest any alternative.

    Thank you
    Avinash

    This is no longer allowed for security reasons (bug 565541).

    See https://support.mozilla.org/nl/questions/880032

    https://developer.Mozilla.org/en/DOM/window.MoveTo

  • I'm used to be able to refresh a page by pressing the F5 key. Which doesn't seem to work. Y at - it a keyboard shortcut for editing, or I can create a?

    I'm used to be able to refresh a page by pressing the F5 key. With 4.0.1 which doesn't seem to work. Y at - it a different keyboard shortcut, or I can create a?

    Try CTRL + R

  • The left side of my headphones is stronger than the right side, I tried the L and R slider in the settings, but it doesn't seem to work! Help, please

    On the side of my ear legt is stronger than the right side and I tried the L and R slider in the settings but it doesn't seem to work! Help, please!     BTW, I have the iphone 6 sec more

    Left *.

    earphone *.

  • My spellchecker of Firefox doesn't seem to work; in fact I don't know that there is. I have a hotmail account, and when I try to use the spelling corrector for hotmail I get a message saying that I am using a browser with a built-in spellchecker. Where De

    My spellchecker of firefox doesn't seem to work; That's assuming that it exists at all. For example, when I misspell a Word when you compose an email using hotmail and I try to correct using the spell checker of hotmail, I get a message saying that I am using a browser that has of own built-in spellcheck. If it is integrated, how the hell can I find?

    This has happened

    Each time Firefox opened

    Is as far as I know, always

    You must install a spelling dictionary, only the US version comes with a dictionary.
    https://addons.Mozilla.org/en-us/Firefox/language-tools/

  • ASSIGNABLE button 6 doesn't seem to work.

    I tried to affect 'assignable button 6' to 'steadyshot' on my FS7, but it doesn't seem to work.

    Countermeasures that I tried:
    Thinking that I might need to reboot the camera, I have it turned on and then turning off. I also tried to unplug and re - connect my connection the handlegrip LANC and swapping of lenses (all the Sony E-mount). I also tried other functions as peaking to assinging but no matter how hard or soft how I push the number 6, he's as dead as a dodo.

    Has anyone else had this problem or is there something that I'm not just doing?

    Sorry everyone. I'm afraid that the culprit was myself. I expected a menu pop up and did not notice that the icon has been change to reflect the State.

    Therefore, the button works very well - it was my brain and eyes (I didn't put my glasses on!) which were defective.

  • Satellite M40X-148: Microphone doesn't seem to work

    Hello

    My laptop model is SATELLITE M40X-148.
    My mic has stopped working.

    I changed my microphone.
    It doesn't seem to work. They worked well earlier.

    Could you get it someone please let me know how to solve this problem.

    Thanks in advance.

    Kind regards
    Suresh

    Have you checked the settings of the external microphone?

    Go to the Control Panel-> audio devices & audio and on the Volume tab, click the Advanced button.

    Then a new window should appear and you could see different volume controllers.

    Please check if mute was not activated in micro controller

  • Siri doesn't seem to work, he won't answer when I hold the home button?

    Siri doesn't seem to work, he won't answer when I hold the home button?

    Have you checked to see if the settings > General > Siri is on?

  • EOS 1Ds Mk II rear wheel doesn't seem to work

    Hello. My EOS 1Ds Mk II has a problem. The rear dial doesn't seem to work, that he will never change any setting in shooting mode. In all other respects, it works very well, but in M mode, for example, changes in command-line before shutter speed, but the back is zilch. Similarly, exposure to flash comp., comp. regular, both do not work with the rear wheel. Am I missing something? The power switch is on, but the camera behaves as if it was off. The dial works for the selection of the menu and move the menus.

    Am I missing something? I have reset all custom settings and personal, reset the date/time clock, and the firmware is up to date.

    I agree.  Send it to Canon service.  I think that they continue to work on the 1Ds Mk II, but not the 1 d Mk II.

Maybe you are looking for