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.

Tags: Flex

Similar Questions

  • 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.

  • using modules in json (or enabling cross domain ajax) files

    I need to display a list of web applications on a different domain. (Both are catalyst for activity sites).

    I seem to have two options:

    JSONP

    I jsonp working on a json file coded hardcoded, but as soon as I tried to put the {module_webapps} in, I realized that BC does not have labels outside of the html files.

    This is the json file, I want to get:

    () houseLandCallback

    {"packages": []}

    {module_webapps, 7307, c, 48029}

    ]}

    );

    CROSS DOMAIN AJAX

    Is it possible to allow both sites to BC to share data?

    I know that the whole point of British Colombia is it have a solid server that you cannot change.

    Not at the moment no. You can run out of FEED.

    Liquid and BC. Is then on the horizon that has more support JSON, etc., while JSOP is not at launch, if all goes well, it can be added down the line.

  • 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.

  • 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
    
  • 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?

  • How can I fix a javascript error when opening from Dreamweaver?

    DW CS6 has recently started having 2 JavaScript errors when opening the application and at least 1 additional JavaScript error when you use the Insert Picture command.  Can anyone provide some tips about fixing this problem?

    DW-error2.JPG

    DW-error1.JPG

    DW-error3.JPG

    This will help-

    Dreamweaver FAQ index

    Look at the first number.

  • Receive the 25 (Null) error when using Flightsimulator FSX

    Receive the 25 (Null) error when using Flightsimulator FSX

    Hello

    Try to open the it to start - all programs - Games - Games Explorer, and then clicking the icon FSX.

    A disk error of 25 means that the program cannot read your disk reading.  Either the disc is scratch, dirty or defective.  If you need another drive, or you can try it on another computer. The message of Visual elements of Vista is not serious.  Vista will automatically your screen to a basic compatible mode when the application is launched.  However, it seems that your game is a failure due to the disk error and not the Vista display problem. Try to clean the disc and see if that helps.

    Last resort, it seems you'd have to do a complete uninstall and reinstall FSX.

    Cheers!

  • dbms_crypto - avoid error when using different key in lower environment

    Hello Experts,

    We use Oracle 11.2.0.2. We intend to implement dbms_crypto to encrypt some columns. Clone us the production data at the lower environment (DEV, QC).

    The lowest environments, we do not want to obtain the sensitive data from production and do not plan to use the same key. Instead of getting an error when using different keys, is it possible to get a different set of results.

    In other words, we want the implementation will be same in environments but use a different key in lower environment and obtain different results (or garbage).

    Any suggestions would be greatly appreciated.

    The test of this logic, I get following error when using the different keys to decrypt. It works fine if I use the same key.
    Error on line 1
    ORA-28817: PL/SQL function has returned an error.
    ORA-06512: at "SYS." DBMS_CRYPTO_FFI', line 67
    ORA-06512: at "SYS." DBMS_CRYPTO", line 44
    ORA-06512: at line 19
    DECLARE
      l_credit_card_no    VARCHAR2(19) := '1234 5678 9012 3456';
      l_ccn_raw           RAW(128) := UTL_RAW.cast_to_raw(l_credit_card_no);
     
     l_key               RAW(128) := UTL_RAW.cast_to_raw('abcdefgh');
       l2_key               RAW(128) := UTL_RAW.cast_to_raw('12345678');
    
      l_encrypted_raw     RAW(2048);
      l_decrypted_raw     RAW(2048);
    BEGIN
      DBMS_OUTPUT.put_line('Original  : ' || l_credit_card_no);
    
      l_encrypted_raw := DBMS_CRYPTO.encrypt(src => l_ccn_raw, 
                                             typ => DBMS_CRYPTO.des_cbc_pkcs5, 
                                             key => l_key);
    
      DBMS_OUTPUT.put_line('Encrypted : ' || RAWTOHEX(UTL_RAW.cast_to_raw(l_encrypted_raw)));
    
      l_decrypted_raw := DBMS_CRYPTO.decrypt(src => l_encrypted_raw, 
                                             typ => DBMS_CRYPTO.des_cbc_pkcs5, 
                                             key => l2_key); --**Using different key to decrypt
    
      DBMS_OUTPUT.put_line('Decrypted : ' || UTL_RAW.cast_to_varchar2(l_decrypted_raw));
    END;
    Thank you.

    In general, you can't get different results in different environments, no.

    Of course, you could write your routine to decrypt so that it intercepts it and returns a random string of RAW.

    However, this is not normally the way people go on hiding sensitive data in environments below. It would be much more common to use a tool that is designed for this tool. For example, Oracle has a Pack of masking of data for Enterprise Manager that allows to replace sensitive data with false, but realistic data as part of the updating of the environments below. There are also data from third-party tools like masqueur datamasking.

    Justin

  • Fortunately, I have download my Canon 7 d CR2 files using Photoshop elements 11; but when I do the same thing with a Canon G7X files are not recognized.  I downloaded the latest update of Adobe for RAW files.  Advice gratefully received.

    Fortunately, I have download my Canon 7 d CR2 files using Photoshop elements 11; but when I do the same thing with a Canon G7X files are not recognized.  I downloaded the latest update of Adobe for RAW files.  Advice gratefully received.

    You need Adobe raw camera 8.7 version. Unfortunately your software is earlier than the camera. ACR 8.7 is only compatible with PSE13. But it is possible to download and install the free DNG Converter to convert your raw files to the universal Raw format files and Adobe will be open in all versions of PSE (keep your originals as backups and for use in the software of the camera factory)

    Download Windows (.exe file) click here DNG Converter 8.7

    Download Mac (.dmg file) click here DNG Converter 8.7

    You can convert an entire folder of images raw with a single click. See this quick video tutorial:

    You Tube click here for the DNG Converter tutorial

  • Core of CBWMS JavaScript error: "when executing translateCustomControl in ExternalRenderers.htm...". »

    Since the October release upgrade I get this dozens of times a day error. It seems to happen when changing window that is developed to another program, while in the middle of saving a file in DW. There is a JavaScript error IN the code base of Dreamweaver, it has nothing to do with any file that I am trying to change, sometimes little any type of file, I work in and/or save.

    Here is the error message: "when executing translateCustomControl in ExternalRenderers.htm, a JavaScript error occurred." It is not always the translateCustomControl function, but it is always in the file ExternalRenderers.htm.

    I use Dreamweaver CC 2014 on Windows 8.1

    Any help is appreciated... Thank you!

    I remember well, it is a bug, and someone mentioned previously.

    If I were you, I would like to send a bug report to:

    https://www.Adobe.com/cfusion/mmForm/index.cfm?name=wishform&loc=en

  • help with JavaScript errors when opening Dreamweaver CC

    Since 3 days when I opened Dreamweaver CC on my Mac OS 10.8.5, I have 2 different JavaScript errors: "InternalError: unexpected end of data", and "InternalError: cannot decode JSPrincipals" Dreamweaver seems to work ok, with the exception of copy / paste, but couldn't find a way to clean up the errors.

    Ahh... found, had to use go and type in ~/library to get there. Thank you!

  • JavaScript error when the special opening

    It happened twice all in task of opening in the workspace: 'expected hexadecimal digit.

    Sniff the communication between the client and the server to LC revealed that the URL should point to a temporary server file contains the server path:

    C:\LCGDS\doc17987987

    first '-' since this is way not analyzable URL together by EI - where the above javascript error.

    LCGDS is the Global document storage directory that is, at this stage, local to the LC Server.

    It is not possible to repeat the isssue or connect it to the specific document, user or workstation.

    We have LC ES2 with the latest SP and configuration of single server (without clusters).

    What should do?

    Don't think it would be on SS2, but this is a bug, you should contact technical support to get a patch so that it is.

    The url must end with the file name of the path part (for example usually something like expenses.pdf) and not including any previous drive: / path path/info).  The bug is that when the full path of the file name contains the backslashes, the analysis did not work.

    The file name is taken from the name attribute of the Document provided for the service rendered.  This case could occur if you use a variable document in your process. As a solution, you can temporarily modify the process to remove the attribute file name variable doc containing the form before being used in a step of user.  (use setvalue with Document function setDocAttribute (docvarname, "fileName", ""-Note that this returns the document updated so easy to use in a setvalue).)

    I do not recommend trying to modify the workspace for this problem.

  • Dreamweaver 6.1 - JavaScript error when switching between open tabs

    When you switch between open tabs, occurs a series of javascript errors. I had not used Dreamweaver for about 2 weeks, and the last time that I used it without any problems.

    I tried to uninstall, OKing deleting all files when asked, re - install and update with dwmx61_updater.exe, but I still get the same errors.

    This made it virtually unusable software, so any help would be greatly appreciated, as I'm working to a deadline approaches quickly.


    'While executing Browse_Back activated within toolbars.xml, a JavaScript error has occurred"
    followed by
    'While executing Browse_Forward activated within toolbars.xml, a JavaScript error has occurred"
    followed by
    'While executing Browse_Stop activated within toolbars.xml, a JavaScript error has occurred"

    The code seems to be:

    <!--> browser nav toolbar

    < id toolbar = "Browser_Toolbar" platform = "win" label = "Browser Navigation" container = 'document' initiallyVisible = "false" >

    < id button = "Browse_Back."
    image="toolbars/images/mm/back.gif".
    disabledImage="Toolbars/images/MM/back_dis.gif".
    ToolTip = 'return '.
    Label = 'return '.
    Enabled = "DW.getDocumentDOM (). Browser.isCmdEnabled ('back').
    Command = "DW.getDocumentDOM (). Browser.backPage ().
    Update = "onEveryIdle" / >

    < id button = "Browse_Forward."
    image="toolbars/images/mm/forward.gif".
    disabledImage="Toolbars/images/MM/forward_dis.gif".
    ToolTip = "forward".
    label = "forward".
    Enabled = "DW.getDocumentDOM (). Browser.isCmdEnabled ('forward').
    Command = "DW.getDocumentDOM (). Browser.forwardPage ().
    Update = "onEveryIdle" / >

    < id button = "Browse_Stop."
    image="toolbars/images/mm/stop.gif".
    disabledImage="Toolbars/images/MM/stop_dis.gif".
    ToolTip = "Stop".
    label = "Stop".
    Enabled = "DW.getDocumentDOM (). Browser.getPageBusy ().
    Command = "DW.getDocumentDOM (). Browser.stopPage ().
    Update = "onBrowserPageBusyChange" / >

    < id button = "Browse_Refresh."
    image="toolbars/images/mm/browserRefresh.gif".
    ToolTip = "refresh."
    label = "refresh."
    enabled = "true".
    Command = "DW.getDocumentDOM (). Browser.refreshPage () "/ >"



    probably the next error is caused by the previous ones have failed:

    "While running to getCurrentValue in AddressURL.htm, a JavaScript error occurred"
    the subprojects tcode:


    getCurrentValue() function
    {
    var dom = DW.getDocumentDOM ();
    var value = dom.browser.getURL ();
    If (value & & value.length)
    {
    check if it isn't a temp file
    excerpt from the tail of the url
    var filename = value;
    var slashIndex = filename.lastIndexOf("/");
    filename = filename.substring (slashIndex + 1);
    var tempIndex = filename.indexOf ("TMP");
    If (tempIndex! = 0)
    {
    addRecentAddress (value);
    }
    }
    Returns the value;
    }

    Out of curiosity, I uninstalled IE7 beta 3, as it was the only program I thought that may be important that has been installed since last Dreamweaver work properly - and guess what? -the problem disappeared!

    Thanks again for your help - I hope this topic can be useful to someone else.

  • CS4 error when using Jquery UI calendar

    HI - hope this is the right forum to post this request - I've just upgraded to DW - CS4 and started playing with some of the new widgets - I have already a page to which I applied the widget JQuery UI calendar that is cleaner than the date picker I was using. This page has a number of links in dbase to get data in multiple tables - all these are functional if I don't change them. However if I try to make a change that I made for record DW insert behavior when I select 'sign in' to choose the database of this error message occurs:

    "
    When executing onChange in InsertRecord.htm, the following JavaScript error occurred:

    At line 665 of file ' C:\program files\... \ServerBehaviors\PHP_MySQL\InsertRecord.js ": name has no property
    "
    As far as I can see that this occurs insert and update behaviors Records DW (edit - on a page) where I have applied JQuery widget. If I remove the widget, it works very well (which is what I did) I was wondering if anyone else has noticed this?

    AmiBios wrote:
    > David - thanks for taking the time to answer - I tried this option with no.
    > success as well as a few others like recretaing the site cache - it certainly
    > does not seem to be a conflict between JQuery 'calendar widget' and the DW
    > Insert behavior. I tried a few other widgets and everything works fine. I guess
    > I'll leave just the widget because the insert is just a little bit more important

    Ah, read your original post more carefully, I see what is happening.
    The JavaScript error you mention is normally caused by a corrupted
    file cache, but it seems that this happens only when you try to
    change an insert record server behavior.

    Without setting up a similar page myself, I can't confirm if this
    is reproducible. My advice would be to apply the widget once you have
    finished editing the server behavior. In theory, there should not be any
    conflict between a jQuery widget and server behaviors, but it is
    the kind of thing that comes out only after tests in-depth.

    It might be a good idea to submit a bug report at Adobe:

    http://www.Adobe.com/cfusion/mmForm/index.cfm?name=wishform

    --
    Adobe Community Expert David Powers
    Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

Maybe you are looking for