I have a project where a user will go to username.website.com.
Once the page loads, there will be an HTML form that displays whatever information we have on the user in an HTML form. If there is a missing piece of information about the user, they will update it.
There is also a side area that contains a flex 3 application. At the bottom of the flex app, there’s a submit button.
I need to make it so that when the user hits the submit button from within the flex app, the current value of the html fields is sent to the flex app so that the html data as well as the data from within the flex app can be transmitted with a URL request.
So basically, when the user hits the submit button within the flex app, I’d like for the data from the html fields as well as the flex fields to be combined and sent.
Here’s how I ended up doing it (for any future viewers of the thread):
Actionscript code:
Import the right class:
Create the function to call the JS function
(My variables [firstName, lastname, address, phone, and email] are defined as bindable strings)
Create the javascript function to get the latest values, and return them:
Here’s my html form too: