Re-build HTML Form in Flash?

Hi
Wonder if someone can help. Please excuse my incompetence, I am fairly new to Flash / Actionscript
Basically I am trying to re-build this simple HTML form in Flash, I have not shown the actual URL here, but this is a functioning form when the correct URL is in place:
<form action="http://www.customersURLhere/" method="post">
  <input type="text" name="vrm"/>
  <input type="submit" value="go"/>
  <input type="hidden" name="update" value="false"/>
  <input type="hidden" name="source" value="aexp"/>
  <input type="hidden" name="supplier" value="AEMP" />
</form>
I have attempted to re-build this in flash. I have 1 text input field which I have set the variable name to 'vrm' to match the input field above. I then created a basic flash button and set the following action:
on (release) {update = "false";source = "aexp";
supplier = "AEMP";
getURL ("http://www.customersURLhere", "", "POST");
Can anyone spot any obvious errors???
Any help would really be appreciated.

Thanks for your help.
Unfortunately I am still struggling to get this to work.
I have applied your script to the button, is that correct? (The button is on it's own layer and has one keyframe at the start or the movie.)
Do I need to label/name the button 'submitBtn' in some way?
You added a comment '//do whatever'... do I need to add something here?
Sorry, I'm a complete novice!!

Similar Messages

  • HTML form over Flash bkd in Safari

    Hi, I've got a site which uses an animated Flash background
    element which is overlayed with a div containing an HTML form. It
    works fine in every browser I have, except Safari. In Safari, as
    soon as I click in the form, the entire HTML content of the page
    disappears. The form and links will still function, but are
    invisible.
    Does anyone know about this problem? Is there a workaround,
    or am I doing something wrong?
    The page is
    here.
    Please note that the site is in a pretty early stage of
    development, and not a lot of it works, but at least it
    demonstrates the Safari problem.
    Thanks!
    Michael

    i got someone to check on safari if their browser needed
    updating for the flash plug-in but it didnt, still no luck with
    this... I think I will try a few things and see what happens, any
    other ideas though, I really can't explain why its doing
    this?

  • Converting HTML form to Flash for Paypal!

    Hello! Im currently in the process of converting my HTML website to Flash. On my website, i am using Paypal buttons (add to cart) so now i need to convert my 3 buttons/form to Flash. Here is my website: http://www.tubesjujubes.com/En/buyonline.html
    I found this tutorial to help me: http://www.actionscript.org/resource...ash/Page1.html
    but something is still wrong! Everytime i click on the button, it brings me to the log in page of Paypal instead of 'your cart' page. See HTML site for what i mean.
    Ive only tried the tutorial on one button so far since i wanted it to work before i applied it to the others. This is the HTML code on my website for my first button:
    <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_s-xclick" />
    <input type="hidden" name="hosted_button_id" value="1699962" />
    <input type="hidden" name="on0" value="Choose your membership" />Choose your membership:
    <select name="os0">
    <option value="1 kid + 1 parent">1 kid + 1 parent $99.00
    </option><option value="2 kids + 2 parents">2 kids + 2 parents $178.00
    </option></select>
    <br /><br />
    <input type="hidden" name="currency_code" value="CAD" />
    <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="" />
    <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
    </form>
    Now this is how i created my form/button in flash:
    Every component and input box are on the same layer.
    The actions are on a separate action layer.
    I create a ComboBox for my choices with an instance name of 'os0'. I imported the button img, converted it to a button and called it 'submit'. For the action of the button, i used: on (release) {
    getURL ("https://www.paypal.com/cgi-bin/webscr", "POST");
    Then i created 4 hidden input box, that i placed outside of the scene. I gave them a var title, using the 'name' from the HTML code and then added the values for each input box on the action layer like this:
    cmd = "_s-xclick";
    hosted_button_id = "1700073";
    on0 = "Choose your membership";
    currency_code = "CAD";
    And its still wont work! And i have no clue what im doing wrong! PLEASE HELP!

    I was able to figure out how to get my btn to redirect to my shopping cart. Basically, you just need to make sure everything is on the btn action layer. At first i have my hidden values on a action layer in the main page and the getURL my btn layer. Now my btn layer looks like this:
    on (release) {
    // Hidden Input fields for Form
    cmd = "_s-xclick";
    hosted_button_id = "1699962";
    on0 = "Choose your membership";
    currency_code = "CAD";
    getURL ("https://www.paypal.com/cgi-bin/webscr", target="paypal", "POST");
    Now my problem is that the values of my combo box arent read and i have no idea how to code it. Can anyone help me with this? Should i code it in actionscript or can i just do it in property inspector box? I know what the problem is but i dont know how to fix it! My button is missing some coding since its not picking up the values of the combo box.
    Anything could help! Thanks!

  • HTML Form-like behavior in Flash

    Hello,
    I'm looking to find a reference that can help me in the
    creation of Flash user input screens that behave in a manner
    analogous to an HTML form. Specifically I'm concerned with error
    checking and data validation. For example, if a user is creating a
    new record or editing an existing record and they choose to
    navigate away from the page, the code should check for data
    changes, and on finding any offer the user an option to save the
    data. Once the offer is made and responded to the flow of the
    application should proceed appropriately.
    In an HTML form this type of behavior would be accomplished
    with an appropriately worded JavaScript "confirm" dialog. This
    dialog allows for a synchronous interaction between the user and
    the flow of the JavaScript code in which user choice results in how
    the code flow proceeds. With Flash, such a synchronous event is not
    inherently possible (to the best of my admittedly limited
    experience). Without this type of "confirm" dialog, one must create
    a custom messaging system to communicate with the user, and must
    also structure the code in such a way that everything is able to
    achieve the desired effects in an asynchronous manner.
    I've tried searching this forum but I don't know how to
    phrase my search in order to find good results. If anyone has any
    ideas, links to resources, links to threads, or any other items
    that might help in my quest to build fully optimized and robust
    user input forms in Flash CS3, I'd really appreciate the help.
    Thanks in advance for any advice!
    Regards,
    Dave

    Why not just use a DataGrid component? They're pretty easy to
    use actually.
    Try this: start a new AS2 project and drag a DataGrid from
    the components
    panel onto the stage. Use the properties panel to size it to
    500 x 300. When
    you add data to a grid it will just show a scroll bar if
    necessary, it
    doesn't resize... Give it an instance name of "theGrid".
    Now, add the following script to the frame:
    import mx.controls.gridclasses.DataGridColumn;
    function doGrid(gridRef, gArray:Array)
    for (var i = 0; i < gArray.length; i++) {
    var cat:DataGridColumn = new DataGridColumn(gArray
    [0]);
    cat.width = gArray[2];
    cat.headerText = gArray
    [1];
    cat.editable = false;
    gridRef.addColumn(cat);
    var gFormat = new Array(["fname", "First Name:", 120],
    ["lname", "Last
    Name:", 200], ["date", "Win Date:", 80]);
    doGrid(theGrid, gFormat);
    If you compile now, you'll see the grid with the field
    titles... I use the
    doGrid function, and an array like this to make formatting
    the grid easy.
    The first item in the array matches the dataProvider
    property, as you will
    see in a moment - the second is the title, and the third the
    width of the
    column... change these as you need.
    To add data, you just create an array of objects, with the
    object properties
    matching the first item in the format array - like so - add
    the following
    and test again:
    var gridData = new Array({fname:"Dave", lname:"Mennenoh",
    date:"09/14/08"},
    {fname:"giga", lname:"saurus", date:"10/14/08"});
    theGrid.dataProvider = gridData;
    That's all there is to it... If you add more data than can be
    shown, you'll
    get a scroll bar. You can add en event listener to know when
    someone selects
    an item, etc...
    good luck
    Dave -
    www.offroadfire.com
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Hi I want to create a search form with drop down search criteria. This form should then search on the same site and display the search results. Is there HTML available for this? Or an oline site that I can use to build this form? I created a form in Jotfo

    Hi I want to create a search form with drop down search criteria. This form should then search on the same site and display the search results. Is there HTML available for this? Or an oline site that I can use to build this form? I created a form in Jotform.com, but this form doesn't search the site, instead it sends me an e-mail. Do you have a solution for me? Thanks.

    Hi I want to create a search form with drop down search criteria. This form should then search on the same site and display the search results. Is there HTML available for this? Or an oline site that I can use to build this form? I created a form in Jotform.com, but this form doesn't search the site, instead it sends me an e-mail. Do you have a solution for me? Thanks.

  • How to embed html code in flash builder 4 ?

    How to embed html code in flash builder 4 ?

    Ya i tried by keeping <fx:Declarations> part but still it is throwing error,
    In flex3 we are making a component ex: <mx:canvas> and changeing that component to
    <cairngorm:ServiceLocator xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns:cairngorm="com.adobe.cairngorm.business.*">
    </cairngorm:ServiceLocator>
    if any one used 4.5 with cairngorm let me know
    thanks

  • FAQ: How do I build a simple email form in Flash Catalyst?

    You can transfer projects into Flash Builder to add functionality like this. Be aware that with Flash Catalyst CS5 and Flash Builder 4, this is a one-way trip. Here is a tutorial by Tanya Heins that explains how:
    Creating a simple form with Flash Catalyst and Flash Builder
    See original discussion thread.

    The best MP3 player I ever found for flash uses xspf
    playlists and xml - really cool and easy to use/implement. Check it
    at
    http://musicplayer.sourceforge.net/
    This player will go through a playlist you determine, or can jump
    from track to track. It takes a little bit of testing to set up,
    but is much simpler than writing your own player - and it's free.

  • Flash navigation and HTML forms

    Wondering if any one can help. Whenever I use an html form on
    an html page, my flash navigation will not show up. The area where
    it should be is blank and my browser status bar says that there are
    two items remaining (my flash navs). The browser stays like this
    indefinately, not completely loading the page.
    Any suggestions ?
    Thanks,
    Elise

    Thank you for reply. I appreciate it. So, if I understand
    correctly:
    I would embed the navbar.swf in all my html files. Then Each
    button would go to each html pages (Like page1.htm page2.htm
    etc...) Then I use your code in my html file right? Like each html
    file will have the following code:
    <param name="movie" value="nav.swf?frame=page2">
    Is that how it works. Sorry for not being able to your
    answer.
    Thank you very much again

  • Modify flash movie from HTML form

    so here is what I have:
    I have a flash movie and as the flash movie plays there are
    elements that say things like, "Your company name here" or "Your
    title here", or "Your Product Picture here" etc.
    From an HTML form (I can do all this part) I would want
    someone to be able to specify their customized information and
    SOMEHOW that would end up in the Flash movie. I would like to know
    whether I need special software to create these. I ultimately need
    have the final product be a .swf with the form-entered information
    like Company Name, etc.
    I don't know what I need in order to do this. I'm basically
    info-gathering. Ask any questions if I am leaving anything out that
    might help you help me identify what we need.
    Thanks in advance.

    no. none from me. i honestly dont have the first clue

  • HTML Form in a "PL/SQL (anonymour Block)"

    Hello
    I need a little ugent guidance
    I have create a "form" within a "PL/SQL (anonymour Block)". The requirement is to show what a HTML form looks like as you build the code
    The problem is I am "Up Setting" the APEX processing i.e. wwv_flow.accept ... I have added an example below .....
    All help very welcome
    Thanks
    Pete
    htp.prn('<!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">');
    htp.prn( '<style type="text/css">');
    htp.prn('#form{font-family: "Trebuchet MS", Verdana, sans-serif; width:25em;}');
    htp.prn('h2{margin: 0 0 0 0; padding: 0;}');
    htp.prn('p{margin: 0 0 1em 0; padding: 0; font-size:90%}');
    htp.prn('fieldset{background:#C361D2; border:none; margin-bottom:1em; width:24em; padding-top:1.5em}');
    htp.prn('p.legend{background:#DED983;
    color:black;
    padding: .2em .3em;
    width:750px;
    font-size:18px;
    border:6px outset #DED980;
    position:relative;
    margin: -2em 0 1em 1em;
    width: 20em;}');
    htp.prn('fieldset{margin-bottom:1em; width:66em; padding-top:1.5em;}');
    htp.prn('#company {background:#F3B4F5; border:outset #F3B4F5; width="700";}');
    htp.prn('#company label{position:absolute;
    font-family:arial;
    font-size:16px;
    padding:.2em;}');
    htp.prn('input{margin-left:9em;margin-bottom:.2em; line-height:1.4em;}');
    htp.prn('#message1 {background:#a3B4F5; border:outset #a3B4F5; width="700";}');
    htp.prn('#message2 {background:#c3B4F5; border:outset #c3B4F5; width="700";}');
    htp.prn('button1 {font:48px "Trebuchet MS", "Verdana", sans-serif;
                     background:#F0888A;
                     border:outset #6EC6F1}');
    htp.prn('#buttons1 input {background:#DED983;
    font:1.2em "Trebuchet MS", Verdana, sans-serif}');
    htp.prn('p#buttons1 {white-space:nowrap}');
    htp.prn('</style>');
    htp.prn('<table width="760"><tr bgcolor="#D5EAE9">');
    htp.prn('<BR><BR>');
    htp.prn ('<form method="" action="">');
    htp.prn ('<fieldset id="company"><p class="legend" >Company</p>');
    htp.prn ('<label>Comapany Name: </label> <input name="company" type="Text" size="30"/>');
    htp.prn ('<br><br>');
    htp.prn ('</fieldset>');
    htp.prn ('<br><br><br>');
    htp.prn ('<fieldset id="message1"><p class="legend">Message One</p>');
    htp.prn ('</fieldset>');
    htp.prn ('<br><br><br>');
    htp.prn ('<fieldset id="message2"><p class="legend">Message Two</p>');
    htp.prn ('</fieldset>');
    htp.prn ('<br><br>');
    htp.prn ('</form>');
    htp.prn('</tr></table>');
    End;
    ______________________________________________________________________________________________________

    Pete:
    Remove the name attributes from all input elements defined by the pl/sql process. For example
    <input name="company" type="Text" size="30"/> should be replaced by <input type="Text" size="30"/> or <input name="f01" type="Text" size="30"/>
    The APEX accept process recognises a predefined set of HTML form input names. Any input with a name not from this set will cause the accept process to fail. f01 through f50 are valid names for the accept procedure.
    varad

  • Error while trying to call a ABAP webdynpro appl. as a link on html form

    Hi,
      When I am trying to call a ABAP Webdynpro aplication as a link on html form. I get the following error
    Error when processing your request
    What has happened?
    The URL http:///sap/bc/webdynpro/form_ap/ (Path of ABAP webdynpro application) was not called due to an error.
    Note
    The following error text was processed in the system DRD : Error in Web Dynpro Runtime System
    The error occurred on the application server DRD_06 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: GET_REQUEST_INPLUG_PARAMETERS of program CL_WDR_CLIENT_APPLICATION=====CP
    Method: INIT of program CL_WDR_CLIENT_APPLICATION=====CP
    Method: IF_WDR_RUNTIME~CREATE of program CL_WDR_MAIN_TASK==============CP
    Method: HANDLE_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP 
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system DRD in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server DRD_06 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server DRD_06 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 102 -u:  -l: E -s: DRD -i: DRD06 -w: 0 -d: 20081002 -t: 032939 -v: RABAX_STATE -e: UNCAUGHT_EXCEPTION
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team
    Any help will be greatly appreciated.
    Thanks
    RM

    RM,
    url clearly shows that it is unable to get host and port.check how you are building that url in html page
    Thanks
    Bala Duvvuri

  • JSP, Data tags, How to build a form edit with multiple records

    Hi, I'm using Jdev 9i.
    I would like to have a JSP form where I can update, delete, insert records displayed in the same page.
    I know that I can use the data tag jbo:DataEdit to do it, but it only works with a single record, I want to have several records in the same page, displayed horizontally.
    The best example is a form to add items in an invoice:
    Productid description quantity price
    1001 xxx 10 20.00
    1002 yyy 15 30.00
    1003 zzz 7 10.00
    Could you give some help please?
    Thanks in advance.

    The form display is dictated by how you process the submit. I would build the form by using standard html tags. Here is another pseudo example:
    <FORM ACTION="target.jsp" >
    <TABLE>
    <TR>
    <TD>
    DeptNo
    </TD>
    <TD>
    DName
    </TD>
    <TR>
    <%
    int nRow = 0;
    %>
    <jbo:RowsetIterate datasource="ds">
    <%
    // increment the row number
    nRow++;
    String sDeptno = "Deptno" + nRow;
    String sDname = "Dname" + nRow;
    String sRowKey = "RowKey" + nRow;
    %>
    <jbo:Row id="myrow" action="current">
    <TR>
    <TD>
    <input type="text" name="<%=sDeptno%>" value='<jbo:ShowValue dataitem="Deptno" />' />
    </TD>
    <TD>
    <input type="text" name="<%=sDname%>" value='<jbo:ShowValue dataitem="Dname" />' />
    <input type="text" name="<%=sRowKey%>" value='<jbo:ShowValue dataitem="RowKey" />' />
    </TD>
    <TR>
    </jbo:Row>
    </jbo:RowsetIterate>
    <input type="submit" />
    </TABLE>
    </FORM>
    NOTE: This should get you started!!!

  • How to use an html form to search my database??

    Hey guys,
    I'm going through 100's of tutorials on creating a PHP CMS structure for my website and did manage to build a very simple 1. I have 1 question that i need your help with. I was browsing through websites on Google and discovered this website that you can search their data base with a an html form. How can I achieve this in the most simplest ways.
    Site URL: http://www.istructe.org/yearbook/index.asp
    Yours
    Ashveer

    The form's data is submitted to a php script.  The script harvests the data and formulates a SQL select statement -
    SELECT * FROM TABLE WHERE fieldname1 = fieldvalue1 AND fieldname2 = fieldvalue2....
    (the form's fields are used to build the WHERE part of the statement)
    After executing the search the script looks at the number of records found.  If that is zero, there were no matches.  If there is 1 or more records found, each is printed to the page.  You would need some facility with a server scripting language to do this, although not too much.  It's fairly simple.

  • How to build a form with a tree component

    Hi, i'd like to know if it's posssible to build a form with
    the Flash 8 Tree component.
    My menu looks like a tree but the childnodes of this tree are
    some form criteria that you can aditionate and post to a serveur.
    I try to use the accordeon menu, and it works but my menu
    must have dynamic heigth, and open all the boxes like the tree
    component...
    I'm in a hole... please healp me...
    Thinks

    Sans,
    I am no Apex expert, but with a situation as "complex" as yours, have you thought about creating a VIEW that joins these 7/8 tables, placing an INSTEAD OF trigger on that view to do all the business logic in the database, and base your application on the view?
    This is the "thick-database" approach that has been gaining momentum of late. The idea is to put your business logic in the database wherever possible, and let the application (Form, Apex, J2EE, whatever) concentrate on UI issues,

  • Is it possible to create a contact form via Flash cs5.5 and package out app for desktop?

    I need to create a desktop app for windows.  Im using Flash cs5.5 and I wanted to know of an easy to way to create a simple contact form that would work once installed on a desktop/
    Thanks guys for any input!

    If you want a contact form you can either use StageWebView or HTMLLoader to show an HTML page in your web server with a contact form.
    Or you can create the form with Flash textfields and then send the whole thing with a POST request to a PHP script in the server, for example.

Maybe you are looking for

  • Conversion of External Price Value to Internal Dec. notation of MBEW-STPRS

    Hi Guru's, I'm doing the Report  for the BOM. I'm facing one problem in passsing the MBEW-STPRS value, I'm passing it as character field, even though it is checking for the format for the price. could you guys suggest me one Function Module which con

  • TextLayout error 1009

    I have a web chat room application used textflow to render the user message embed swf emotions. After I updated to flex 4.5 sdk, I get these errors oftenly and I just can't debug with it so I don't where went wrong exactly. Please Help me out , or ju

  • Principal Propagation for ABAP senders

    Hi! I went through sap note 974873 describing the whole procedure for principal propagation. In my cas I work with one ABAP system (without J2ee Engine) and of course SAP PI. What are the steps for the principal propagation in this case? (Sender: ABA

  • SAP Business One for HANA - No Harware key

    Hi, I've installed SAP Business One for HANA PL11 successfully but when i try to install sap b1 client on windows client there's an error during the installation of DI API (hanadb client installed already). I also noticed that there's no hardware key

  • ERP Central Component Enhancement Package 4

    Dear friends, In my company sap ( ECC 6.00) Enhancement package 4 is applicable, I want to confrim what is new for SAP mm in package 1,2,3,4.. Neeru Dimri SAP MM