Can a Flash SWF embedded save and get a variable with the drive?

My SWF content contains text in different languages.  The user selects a language and it appears.

Is there a way to store this setting locally so that the correct language is displayed when the pdf file is reopened?

I only need a two-letter string, such as "EN", "FR", "ZH", etc., and the SWF file takes care of the rest.

I tried calling multimedia_saveSettingsString of SWF Actionscript, and I tried to set a global variable in Acrobat and local setPersistent using Actionscript and .js files. It works in Acrobat, but not the reader on a users system.

I also tried to use a separate pdf form to store a global variable and then tried to get this variable using the SWF Actionscript.

Could it be a problem with Acrobat properties or security settings?

I'm not a virtuoso, would help the sample scripts.

(Windows 7; ActionScript 3; Acrobat 9 and XI are available; Adobe Reader 9 is installed base, but I may be able to move to a more recent version of the player)

I asked a similar question in the Acrobat Javascript community, but didn't get any response. I have here reformulated with additional details

Thank you.

Here's my example section linking to the Save and Load buttons. evalText, infoText and replyText are the three fields TextArea.

Note that it is important to send a string and returns an object and cast it to a string. EI.call () has no idea what is sent to JavaScript.

// button handlers
butSave.addEventListener(MouseEvent.CLICK, doSave);

function doSave(e:MouseEvent):void {
    var rtn:Object = ExternalInterface.call("multimedia_saveSettingsString",evalText.text);
    if (rtn == null) {
        infoText.appendText("Save: REPLY = null");
    } else if (rtn.toString() == "") {
        infoText.appendText("Save: REPLY = empty string");
    } else replyText.appendText("Save: reply = " + rtn.toString());
}

butLoad.addEventListener(MouseEvent.CLICK, doLoad);

function doLoad(e:MouseEvent):void {
    var rtn:Object = ExternalInterface.call("multimedia_loadSettingsString");
    if (rtn == null) {
        infoText.appendText("Load: REPLY = null");
    } else if (rtn.toString() == "") {
        aT(infoText,"Load: REPLY = empty string");
    } else replyText.appendText("Load: reply = " + rtn.toString());
}

Tags: Acrobat

Similar Questions

Maybe you are looking for

  • Acquisition of problem of network address

    The OS is XP (SP-3). Trying to set up a wireless laptop - it works very well if connected via ethernet. We have another laptop which works without problems and logged before several other laptops without problem - so suspects don't not the router. -D

  • Impossible to print labels ' click and ship "more.

    I use to be able to print labels ' click and ship "(USPS site) for aprox. 2 years.  Need a label from the package 2 days ago and they will print now.

  • Error: 0xc0000034 after installing Service Pack 1

    original title:! 0xc0000034! 144/47075 (_0000000000000000.cdf - ms): appear on the startup, after the release of Windows Vista Service Pack 1 to install Service Pack 2. Hi Sir / Madam I had a problem with my ACER ASPIRE 2930Z, yesterday I finished up

  • Network wifi connectivity windows 7 homebasic problem

    My wi fi connection last just for some 30 minutes after the system is restarted its work properly and again after unplug some 15-20 minutes. I force knows what happened to computer laptop everything... but in my cell phone only no such problem... so

  • SplashID - do not launch

    Hello world. I am new to the palm community. I thank all help... I downloaded SplashId and put all my entries in as soon as I got my home phone. It works great until I installed the new update. When I click the icon, there is just a white screen. I d