Combox interaction with submit button

Hi i have a university project, where i have to create an
flash file that letes 7-11 year old kids to write a story.
i have desgined it so that i have written most of the story
but the user can sellect say for example the name for the character
by selecting a comobox.
i now need to create a submit button that will store their
choices, and it anther use them in another frame. to basically to
show the user their finished story.
can anybody help me, and tell me how can i can do this, im
not very good with flash or action script,
i will paste my code onto here. note the options for
combo-boxes are loaded from a simple xml file.

Well, I doubt anyone will have time to write whole thing for
you but, conceptually what you can do is;
1. Create their choices holder. It can be either an array or
an object. I don't know what is the best because I am not sure how
you are going to use these choices - in particular you need to
decide how you will match the choices with whatever you use them
for:
var userChoices:Array = new Array();
2. Add a listener to you submit button:
submitButton.addEventListener(MouseEvent.CLICK,
submitListener);
function submitListener(e:MouseEvent):void{
// here retrieve the current drop down choice and add it to
array
// again, what you add - index of choice or the value of it
depends on further usage
return;
3. Create a listener function that will retrieve the info
from your array or object and does whatever:
populateButton.addEventListener(MouseEvent.CLICK,
populateListener);
function populateListener(e:MouseEvent):void{
// get info and continue
return;
This for starter.
Let us know if you have any particular problem.

Similar Messages

  • I have an InfoPath with submit button, publish the same to form library.

    Hi All,
    i have an InfoPath with submit button, publish the same to form library.
    Now, i open the form  fill it and attach some files, when i press submit button, that attachments will go to the particular document library.
    Can any one help me out.
    Thanks in Advance!

    Hi Anil,
    According to your description, my understanding is that the attachments attached to the form were submitted to an documents library.
    By default, the attachments should be attached with the InfoPath form and will not be submitted anywhere.
    There may be some customizations on the form that is to submit the attachments to the document library.
    Please check the links below if the customizations are made in the form.
    http://www.bizsupportonline.net/blog/2010/01/upload-document-sharepoint-infopath-form/
    http://www.bizsupportonline.net/blog/2010/04/top-10-questions-infopath-file-attachments/
     Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Associating two events with submit button using  javascript in jsp

    Hi
    How can i Associate two events with submit button using javascript in jsp. Firstly it should insert the data to database and secondly it should close the same pop-up window

    Have something like :
    <input type="submit" name="submitbtn" value="Click me" onClick="function1(); function2(); " />
    You just call both functions sequentially, it's that simple. Although using javascript to work with a database, that seems a bit tricky.

  • I was online earlier this week and liked the forms with submit buttons and the Adobe site directed me to upgrade to Adobe PRO XI in order to use forms so I bought five licenses. Just had it installed today and it is now asking me to sign up for forms Cent

    I was online earlier this week and liked the forms with submit buttons and the Adobe site directed me to upgrade to Adobe PRO XI in order to use forms so I bought five licenses. Just had it installed today and it is now asking me to sign up for forms Central in order to use this feature. What gives? The Adobe site gave me the impression that I would have this feature after purchasing the new upgrade. I would not have purchased the upgrade, let alone five of them had I know this. Am I missing something?

    Acrobat XI comes with the Fromscentral AIR application and the ability to create PDF forms authored in Formscentral. To have more than the free (1 form with 50 responses) level account you need to sign up for a Formscentral subscription.
    Andrew

  • Adobe interactive form-submit button is not working

    hai guys,
      i am following the example in sap technical.
    i have created the adobe form in webdynpro for abap applaiction.
    but the submit button doesnt work .(it doesnt trigger the break point set in on action method)..
    reading other threads,i verify,
    the button is dragged from webdynpro library(i dont ahve native and activex libbraries but only one library)
    i am on
    sap ecc 6.0
    netweaver 7.0
    adobe life cycle designer 7.0
    acrobat 8.11
    any suggestions?

    Hi Kumar,
    When you create the Adobe Form from WebDynpro, you need to follow one step in SFP Transaction or inSE80 transaction. Open the Adobe Form in any one the transaction and now in SAP menu bar "Utilities" in that you will find the "INSERT THE WEBDYNPRO SCRIPT" just click on that one. Then you will see a new Script Object is being created with the name "ContainerFoundation_JS" under the "Variables" in the Heirarchy of the Object Pallete of the Adobe Form.
    This step is mandatory to use the SUBMIT Button of the "WebDynpro Native", to trigger the OnSubmit event of the WebDynpro.
    Thanks and Regards
    Pradeep Goli

  • Fighting with Submit Button and Return Address / distributing Forms

    I go crazy, too ! We designed some smart forms for a new evaluation process, too, and had a successfully test within our IT collegues. Now we handed the process over to the users, and the problems are on!
    We made sure that everyone uses the same version of Adobe 9.1.2 Pro - but not 2 users do have the same results.
    We found following 2 major issues:
    1) When opening the _distributed.pdf - users either completly missing the pink bar with  Highlight fields / Submit Form
    or, very odd, just the Submit Form button
    2) For those who fortunatly have the Submit Button, another odd thing happens:
    The Send form correctly shows the to: address .....
    Our Desktop Email Application is Notes...
    Guess what .... Now the Email adress changes to [email protected]   ( this worked fine in our testings before...)
    Do you have any clue from where this address is pulled ???? We checked the identitity Info in the Adobe installation at the users computers, the email and name entries are correct there.....
    Please help !!!

    I am pretty sure the answer is in the script. I have put together pieces of script from other suggestions and I am pretty sure I have ascrewed something up  along teh way. I have looked at the attached link and that is where I got some of the script you see below. I am sure you will refer to me as the hatchet person who chopped the script up. sorry. (It is in the Mouse Up) This does work, sort of...It will give the user the message that the required fields are not filed in if they are blank, but it will send the email, but without the custom message in the subject line.
    if (employeename.rawValue != null || employeename.rawValue != "") {
    vSubject  = "Form completed by " + employeename.rawValue;
    vBody = "The form has been sent by " + employeename.rawValue;
    if  (completedate.rawValue != null || completedate.rawValue != "") {
    vBody   = vBody + " on " + completedate.rawValue;
    if  (EmployeeID.rawValue != null || EmployeeID.rawValue != "") {
    vBody = vBody + " Your ID is: " + EmployeeName.rawValue;
    var oDoc = event.target;
    oDoc.mailDoc({
         bUI: false, 
         cTo: "[email protected]",     cSubject: "Statement from " + EmployeeName.rawValue + "

  • Spry validation issue with submit button

    Hi,
    I'm new to Spry but am having an issue getting it to work at all.  I created a very simply form (i.e. table with Spry text field and submit button).  I've read many articles and been to several forums, but I can't seem to find the issue I'm having.  Basically, when I go to preview the page in a browser, the table with the Spy text field and submit button comes up fine, but when I hit the submit button, I see the page refresh and any values I had in the text field disappear, but nothing ever comes up saying "A value is required," which is what I'm looking for. This happens even if I don't have any values in the text field.  Below are images of what I'm describing and also the code.  I verified that the "Required" check box is checked in the SpryTextField and the submit button action is selected to "Submit Form."  My setup is Win 7, DW6, & XAMPP.  Any help you can provide would be greatly appreciated.
    Before Submit Button pressed:
    Browser after button pressed: (same as above but no message saying "A value is required.")
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    test
    <table width="600" border="1">
      <tr>
        <td><form id="form1" name="form1" method="post" action="">
          <span id="sprytextfield1">
          <label for="test"></label>
          <input type="text" name="test" id="test" />
          <span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></span>
        </form></td>
      </tr>
      <tr>
        <td> </td>
      </tr>
      <tr>
        <td> </td>
      </tr>
      <tr>
        <td> </td>
      </tr>
      <tr>
        <td><form id="form2" name="form2" method="post" action="">
          <input type="submit" name="submit" id="submit" value="Submit" />
        </form></td>
      </tr>
      <tr>
        <td> </td>
      </tr>
    </table>
    <script type="text/javascript">
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "email");
    </script>
    </body>
    </html>

    Do yourself a big favor and don't waste time with Spry Validation.  Most modern browsers support HTML5 forms with the required attribute. 
    If you must placate older browsers, use jQuery validate script.  It's lightweight and works when HTML5 support is missing.  You can see an example below. If you hit submit with empty form fields, the required fields pop-up with messages.  View source in browser to see the code. 
    HTML5 Form with jQuery Validation
    Nancy O.

  • Client side validation with submit button in another region

    Hi,
    I have two regions, one containing a form with input texts for the user to fill in, and another region with a command button. A few of the input fields use the ADF "required" validator.
    My problem is that when I click the submit button, and it does some logic to commit the form to a data base, even if the validator triggers and says that one of the required fields is empty, all the other fields get committed, except the ones that are empty. They get the last valid value.
    What I want is the button to trigger the ADF message that doesn't allow the user to continue with the update. This doesn't happen though.
    Anyone have any ideas? If you need a more thorough explanation, please let me know.

    Regions work as indipendent pages.
    Yet if submit buttons are partialSubmit="false" then both regions (pages are submited).
    Still there is a bug when commiting data:
    [http://adfbugs.blogspot.com/2009/08/page-with-region-validations-bug.html]

  • Acrobat form with submit button

    Have a coldfusion app that includes an acrobat form that contains a submit button.  The button submits the form to another CF page.  I'm making some fixes to this app and need to change where the form submits, currently it's going to production but i need it to go to test.  When I open the form in Acrobat 8 or Livecycle I don't see any script.  Anyone know where to change wheer this form posts?

    Not sure about LiveCycle, but here's how to do it in acrobat.
    1) Right click on Form Button -> Properties -> Actions
    You should see a list of actions associated with the button.  something like:
    - Mouse Up
           Submit a Form
    2) Select on "Submit a Form" and click "Edit" at the bottom of the screen
    3) Edit URL in "Submit Form Selections" window.

  • Need help with Submit button

    I'm needing a script that locks all of the fields once the submit button is pressed and it's emailed to someone else. Is that possible? Thanks in advance for your help.

    Right now I'm using javascript to submit the form. I'm using
         this.mailDoc({
         bUI: true,
         cTo: [email protected],
         cSubject: ""
    So I need to incorporate the script you gave me with this script that I'm already using?

  • Help required with submit button

    Hi,
    I need a little help with the submit button. The user submits the form as PDf to a servelt using submit button. The form submitted is validated at server side. If there are any errors the error messages are to be displayed to the user as a part of Form.
    My approach was to have a hidden field present in the form. Once the error messages are recieved the field is to be populated with these messages and made visible true.
    Problem with my approach:
    1) How to send back data to the field using the servlet code which we have?

    Unless if you use a Webservice, sending data back to form from the Servlet may not possible.
    Once the form submits the data to the Servlet, the connection will be lost between the form and Servlet.
    But if you use a Webservice, you can trap the response and display it to the user.
    Other alternative to Servlet approach is, display a another page in the browser with the response.
    So the user after submits will be notified of the result in a new window.
    Thanks
    Srini 

  • Problem with submit button in wweb dynpro abap

    hi all,
                we have problem in submit of our interactive form in web dynpro abap.
    my scenario.
                             on event submit we have to fetch data from database table and display the same.
    On click of the SUBMIT button for the first time it fetches data but when we change the input field and submit again it dsnt trigger the event(We need to double click only then event is triggered).
    Can anyone guide us on how to fetch the data at single click.
    Thanks and Regards
    Vinoth

    The form is open. I should have mentioned that I made sure to check that first.  The form was created by uploading an existing PDF file that I created from a MS Word file to Adobe FormsCentral. Once the form was completed, I had a coworker test it & it worked.  We sent the form out & I have received some back, but have also received reports of the form not working.  I downloaded the form to my computer & tested it using Adobe Acrobat 9.0 Standard.  I use a Windows environment on a Dell laptop.  The form does not work for me.

  • Form with Submit Button

    I recently purchased the acrobat professional 8 and tried to create forms that people can fill in and submit it to us. I tried email button but for some reason never get the email for the data. I thought about http button, but it need some scripting skill. I have some knowledge in ASP script but never create any script for form submission before. Can anyone show me some sample of how to create the script or point me to the right direction that I could have the submit button feature?
    Also, I seem some forms that can allow reader users to save the data that they type in the form onto their computer, do anyone know how to create a form with this feature?
    Thanks

    Use a regular button and change it's control type to submit. Under the Submit tab type in "mailto:youremailaddress". You can then either choose the Submit As for XML, which will send you the data that you can then import into the form or choose Submit As for PDF and you'll get the entire document.
    Also, open the form in Acrobat, go to Advanced > Enable Usage Rights in Adobe Reader. This will solve your problem.
    *one thing to note, if you ever make changes to your form be sure to do the Enable Usage Rights in Adobe Reader step again.

  • Problems with "Submit" button on simple PDF form.

    Hi there!
    I have searched, but perhaps not searching forums correctly to find my answer as this seems like it should be easy to fix (she said hopefully).
    I have created a simple, offline PDF form for an event registration.
    I have fields all done, set it up to email back a simple FDF from the client with a Combo Box "Submit" button.
    When the client fills in the fields and hits "Submit" button, she gets:
    "The file may be read-only, or another user may have it open. Please save the document with a different name or in a different folder."
    I created this in Adobe Acrobat 9.
    Client is filling in using Windows XP.
    I have extended release, no security, etc.
    Is there something simple I am missing?
    Have been able to get this to work before.
    But now, not so much!
    Any help is greatly appreciated!
    Thanks!

    That's not normal. Do you know what version of Acrobat/Reader the other person is using? Can you post the form somewhere? If not, I'd be happy to take a look at it if you are free to email it to me at: acroscript at gmail dot com

  • Problem with submit button - Acrobat/Reader

    I have created a simple fillable form with Adobe Acrobat XI Pro with a submit button, form posted to the web. The form/button works fine for me in Google Chrome, IE, and Safari (Windows 8, Outlook email client) but doesn't seem to work for users with only Adobe Reader (9 was tested using an older version of Windsows and Outlook). After completing the form successfully, they are returned the error message: "This operation is not permitted" when they attempt to submit their form using the submit button. I'm not sure what program is causing the problem. How do I fix this?

    You need to Reader-enable the form using Acrobat. Before Reader 11 was introduced, Reader was not able to save a fille-in form unless the document was enabled. Since the changes need to be saved in order to attach it to an email, this is necessary for previous versions. Do enable a form in Acrobat 11, select: File > Save as Other > Reader Extended PDF > Enable More Tools

Maybe you are looking for

  • My movie download is stuck in process mode for 10 hours

    I downloaded a movie to watch on a trip and for the last 10+ hours it's seems to be stuck in the process mode. I can't watch the movie I can't delete the movie,

  • Enabling TRIM on MBP 2010 ?

    Hello, Few weeks ago i installed Corsair Force GT Sata 3 SSD.After a while i was curious about if im using on full performance.Then i found out TRIM Support is not enabled. Some sites says do this do that on terminal to enable trim support but i was

  • Wanted: Examples of sending posts to Chinese Weibo - their twitter/facebook like platform.

    I'm looking for examples of connecting to China's Weibo using Flash/Air/AS3. It's like Twitter pretty much, and has APIs etc. Very similar stuff. http://open.weibo.com/wiki/API%E6%96%87%E6%A1%A3/en http://code.google.com/p/weibo-android-sdk/downloads

  • Doubt in basic stuff

    Hi all, I have installed 10g app server and also new to 10g. My doubt is , is there any way to created domain in 10g app server as in weblogic . Please reply to this. Srini

  • 'exporting' psdx files via email

    I'm not hooked up to the create cloud, so it seems the only other option I have to get my PSDX files to my desktop computer--to work on them in PS--is to email the files to myself. I just want to confirm: is this the only other option besides the CC?