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
-
How can I reinstall Windows xp when there is a problem with the driver cd?
When I turn on my pc, there is a message ; there is no disc in the drive.
It's really annoying, and in addition, Cd driver can read nothing.
and to make things worse, it freezes often.
I want to reinstall the program; but I don't know what I have to do without cd.
Thank you for your help.
Hello
I suggest you to follow these steps and check if that helps:
Method 1:
Start the computer in safe mode and check if you get the same error message:Method 2:
Try to perform the clean boot and check if it helps:
http://support.Microsoft.com/kb/310353
NOTE: When you are finished troubleshooting, make sure that restore you the computer mode normal startup such as suggested in the article above.
Check if that helps.
-
Pleace help me
Thank you
Oh yes
Please check again
SQL > setmypid oradebug
SQL > oradebug CPI
SQL > tracfile_name oradebug
Thank you
-
I received an email with 3 accessories, 2 images and 1 PDF. I am trying to open larger photos and I get the message, "we are unable to open this file. You want to save and try to open with another application? »
Why can't click a picture in the mail app and have it launch a photo viewing application. ?What you need to do is to go to control panel > programs > by default of the programs > set your default programs. Or search for programs by default, which must raise I have right as well (just start typing on the splash screen or slide from left to right and click on the search button). Go to the photos and select set this program as default. This fixed it for me.
-
I'm doing iPhoto my screen saver and I am not given the choice, when I click on "Source". iPhoto is grayed out. How can I make iPhoto my screen saver? I'll just put up my new iMac.
As a guess I think you need to import your iPhoto library in Photos and chose the photo library.
-
Where can I get a copy of the Windows XP installation for my sister. His was a virus and I had to format the drive. It's a registered computer. I have it ready for the operating system but I need to download a copy so I can retrieve my CD-ROM/DVD-Rom drive, so I can then bring to its system and reinstall the XP and then if she wants that we can get a windows 8. I use windows 8 on this system, I bought a few months ago and it's satisfying, but I don't understand why when I got it I could do things like using the keyboard of the screen with my fingers, but now I can't even use the keyboard mouse. It won't work at all. In a way I found it better that way at the beginning because I do a lot of typing and it would freeze until I was constantly stressed. I returned to Windows 7 mode I think but not sure. All I know is that these two things have never worked correctly, so if they are still under warranty I will bring to the Future Shop and maybe they can fix it. I wish I could turn on and off easily so it does not interfere with my writing and study of a language second.
Ralph Sabean
E-mail address is removed from the privacy *.
or * address email is removed from the privacy *
There is no legal download of XP unless a TechNet or MSDN subscription. I'm sorry.
-
Our broken computer and we have relocated our software for our accounting program. When we go to print, it does nothing. Help out us and we were told that the printer, a 6500 Officejet from HP A doesn't have a driver. How to get a driver on the computer it recognizes as one of the printer
Hello Stephen,
You can go to your printer manufacturer's Web site to download the driver for HP Officejet 6500 all-in-one printer from the link below.
http://h10025.www1.HP.com/ewfrf/wc/softwareCategory?product=3795314&LC=en
Select your operating system , and then click Next. Follow the prompt to choose either the full
the function print driver or the basic copy, scan driver.
Good luck.
-
Hello! I've got CS3 Design Standard - real records and certificate of software license. It was installed on my laptop that crashed and could not be uninstalled. I have now installed it on my new MacBook Pro, but can't get it registered with the serial number. Is it because it has not been uninstalled on the previous laptop? What should I do now? THX!
Maybe this can help someone else... I had to simply properly uninstall CS3 and reinstall again after that. I think what he sort! I also remember having a similar problem with the Mac at work a couple of years back. Not sure if it is the same for CS5/CS6. Here is a link on how to properly uninstall CS3 on Windows XP, Windows Vista and Mac OS. I'm on OS X 10.9.2 but it works beautifully. Remove from Creative Suite 3 and CS3 products
-
This may sound silly, but once when I was about to leave Firefox, I got the warning prompt if I wanted to close many tabs... As I click on save and leave I pressed accidentally the "save these settings. Now I'm just wondering, how do I disable it, so that Fireox sends the prompt whenever I try to close multiple tabs? I'm under 3.6.6 with OS X Snow Leopard.
You can reset the preferences to warn on the topic: config page via the context menu.
browser.tabs.warnOnClose, see http://kb.mozillazine.org/About%3Aconfig_entries
browser.warnOnQuit, see http://kb.mozillazine.org/browser.warnOnQuit
browser.warnOnRestart, see http://kb.mozillazine.org/browser.warnOnRestartTo open the topic: config page, type Subject: config in the address bar (address) and press the Enter key, as you type the url of a Web site to open a Web site.
If you see a warning then you can confirm that you want to access this page.In Firefox 3, you don't get the dialog "Save and exit" pop - up if you choose Firefox > Preferences > General > startup: "When Firefox starts": "show my windows and tabs from last time '.
Get the dialog "Save and exit" pop - up, to select one of the other options (display my home page, display a blank page). -
PC won't start at all, and when I try with the recovery cd, I get blue screen
ORIGINAL TITLE: Help me please
My toshiba satellite p200-123 moel is any commissioning and when I try with the recovery cd I get a blue screen, also I can't start safely mode.the error message I get is... the file is maybe corrupt.the the file header checksum does not match the checksum calculated... help pleasseeee
Hello
You are booting from the recovery disk?
You need to change the Boot order to make the DVD/CD drive 1st in the boot order:
How to change the Boot order in BIOS:
http://pcsupport.about.com/od/fixtheproblem/SS/bootorderchange.htm
If you continue to have problems with the help of Toshiba recovery disks, you will need to contact Toshiba.
As you get a blue screen, you may have a hardware problem.
Toshiba support:
http://www.CSD.Toshiba.com/cgi-bin/TAIS/support/JSP/home.jsp
You can also try the free Toshiba Support Forums:
See you soon.
-
Original title: restore Microsoft Money backup files
System crashed and had to reinstall Vista. Backup my MS Money files and am now trying to restore. It asks for my password I entered and get a message that the password is incorrect. The password entered is correct. How can I work around this problem and restore my files?
Hello
How did you create a backup of these files Microsoft Money?
Please see the article below which might help you.
Errors that you receive when you try to open Money by using your Windows Live ID credentials
http://support.Microsoft.com/kb/891338You can also try posting this question in the Microsoft Money forum for assistance.
http://social.Microsoft.com/forums/en/money/threadsThanks and greetings
Umesh P - Microsoft technical support.Visit our Microsoft answers feedback Forum and let us know what you think.
[If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer, or relatively useful, you help others find the answer more quickly.] -
How can I build and pass a variable to the function getField?
I need to know how to build and pass a variable to the function getField():
I have a form of several sections similar to a spreadsheet. Each section contains 5 rows of 11 columns. Currently I have calculations in the field I want to consolidate and move to the level of the document. The field names in each column are identical except for a row identifier. For example, in the 1st row: a_debtType1, a_debtTerm1, adebtRate1, etc. I want to be able to pass to a function of level document line identifier and that connect a function "getField. Here is an example:
Document-level:
function calculateLoan (lineNumber) {}
var myDate = getField("a_debtType"+lineNumber).valueAsString;
var myDate = getField("a_debtTerm"+lineNumber).valueAsString;
.. few treatment
return
}
Level of the form:
change the information in the form is ready for line 1
function calculateLoan("1");
Thanks in advance for any help.
It seems good except how you call the function of what you have. The calculation script should be something like:
Custom calculate script
calculateLoan("1");
Note that you can also get the line number if it is contained in behalf of the field that calls the script if you don't disturb him passing as parameter, assuming you named the fields correctly.
For example, to calculate the field is called "row_total.1", you can get the line number in the script like this:
var no_lig = event.target.name.split(".") [1] ;
-
all ink has expired. can I buy only black ink and print n & b with hp Vivera printer, photosmart 3210 all-in-one
and black and white printing only with color expired ink in there?
Hi @peanut7949,
I believe, with this model, you can continue printing with inks has expired. That being said, if you replace only the black ink and continue to print with others (expired), it should be fine.
Here's what I could find on the subject:
Each ink cartridge has an expiration date to protect the printing system and ensure a good quality ink. The cartridge expiration date appears on line 53 of the free test report. -
Can I use a Gen 4 and Gen 3 ATV on the same network?
Can I use a Gen 4 and Gen 3 ATV on the same network?
Yes.
-
As said, I recently bought a used iPod from the original owner, they had gotten their child a new iPhone and is more used to the iPod. When asked, they told everything what I need to do is to reset the iPod when I got home. Got home and went about resetting it, but when you attempt to set it upward and connect to iTunes, it says that I need their last ID. Apple I'm not able to get in touch with the original owner, I didn't to get any contact since I wasn't worried for their need (had taken as them all I would need to do is to put) to nine).
Is it possible to fix this? I realized this is cause I have to disable find it my iPhone thing, I did not know was even a thing or would have done so before resetting the iPhone.
Thank you for anyone who is able to help!
I'm sorry.
The iPod is useless until / unless previous owner deletes their iCloud account.
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
-
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