Skip to main content
Participant
February 21, 2007
Question

Sending form data

  • February 21, 2007
  • 1 reply
  • 142 views
Hello. I'm hoping someone can assist. I think this is probably pretty simple, but I only know basic Actionscripting -- learning more as I go along. I have one input text field and a submit button. This is a small Flash form that I'm creating for a client to put on their website. I have this info from their developer to use for this form...

// Form action url
&form_action=http://webpage&
//
// Info Box Field Names////////////////
&request_text_field_name=request_text&
&p_user_id=2345&

I just need to know how to use this in the Flash file to get the info to send. If this is fairly simple, I would appreciate it if someone could tell me how to do this, or point me towards a tutorial or something. Or just let me know that it's a bit complicated and I'll get someone else to do it for me! Thanks in advance!
This topic has been closed for replies.

1 reply

Participating Frequently
February 22, 2007
In addition to the links you can get with some Googling, the examples in Flash help are a good starting point. Mostly depends on if you want to use XML or not:

Without XML:
1. LoadVars.sendAndLoad
2. Using the LoadVars class

With XML: XML.sendAndLoad

There is also the Flash Pro data integration components to consider. These are for using the Flash UI components where the UI components can be bound to the data source without coding. Still a big leap in learning but nevertheless another way to go:
Data Integration - Flash Components
Note you can use Flash UI components with the LoadVars and XML above via ActionScript as well.

Finally do not dismiss the Adobe site. It contains many free examples and tutorials. For data integration you may want to start:
Adobe Site - Data Integration