Allowing a user to move objects (in this case buttons) around the form. We wanted the user to be able position markers within a grid. The number (caption) of the button related to a particular solution in a table.
Solution
This solution is based on the "fly swatter" example by Thom Parker (http://www.pdfscripting.com) and samples by John Brinkman (http://blogs.adobe.com/formfeed/) looking at x, y, w and h properties.
The amount of data you need to encode into a barcode from your form can vary. How can you automatically increase the number of barcodes on your form to capture all of the data?
Solution
Dynamically increase the number of barcodes, according to the amount of data present.
I have created a form that has two comboboxes with the simple selections of YES or NO in them. If the user goes and selects YES in ComboBox A then i want ComboBox B to appear in the form and become required. Else I basically want the from to stay the same. I started by writing an if statement that would run on exit of the combobox A and i dont know if that is the correct place to run it or not. Can someone please help me on writing this script? Thanks!!
Solution
This problem involves 2 concepts. The first concept involves the understanding between static and dynamic forms and the second is how to apply JavaScript to objects on the form. We will address how to use both to make components appear and disappear based on logic in your form.
Typically, you'd need to open up each redaction annotation's properties dialog to change or set the redaction code one at a time. This can be tedious and time consuming.
Solution
With just a few lines of JavaScript, you can dramatically reduce the number of steps.
Setting a form field to “Required” in the “General Properties” tab forces the user to fill in the selected form field. But there are cases when you need the user to fill out a particular field before moving on to the rest of the form. You could use JavaScript to dynamically enable or disable parts of the form but that can be cumbersome to keep track of.
The ideal situation would be to, where appropriate, force the user to enter data into a required field before moving to another field.
Solution
Add the following code to the “On Blur” action of the field you want to be required.
You want to print a PDF file directly from AIR without displaying it to the user and using your own custom button (not the default PDF control bar).
Solution
Open the PDF document you want to print in Adobe Acrobat Pro. Add the JavaScript code to your document and save it. Create an HTML page that contains a JavaScript function and embed the PDF document. In your Flash (or Flex) file add a button that prompts the user to print the document. Add the ActionScript 3.0 code that communicates with the HTML page. Publish your AIR file (making sure you include the HTML and PDF files). Test your AIR app.
What if you are creating an application that compile size matters and you want to use JSON strings to get data into your application. JSON stands for JavaScript object notation, it is a more condense data format then XML and is able to define different types of data not just Strings. You can use the Adobe Core Lib classes to parse this information but these classes add a little extra weight to your application and in some apps this isn't ok but there is another way.
Solution
Because JSON is just a subset of JavaScript objects ExternalInterface can just send these objects as Strings to JavaScript within your browser and the JavaScript interpreter will send an ActionScript Object back to you with the correct types. I have also noticed that this information is parsed faster and more reliably then the standard version but remember that this is only helps you with decoding. If you would like to create a JSON string from an Object you will have to use something else.
The amount of data you need to encode into a barcode from your form can vary. How can you automatically increase the number of barcodes on your form to capture all of the data?
Solution
Dynamically increase the number of barcodes, according to the amount of data present.
I want to alert my users like MSN alert when new user login or new email , but i can't determine the height of the taskbar to display my alert window above it :( .
Solution
Make new invisible window with none system chrome , maximize it , then the task bar height will be screen height - maximized window height .
This site is produced in partnership with
O'Reilly.