Tuesday, December 6, 2011

Sending form data

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

%26amp;form_action=http://webpage%26amp;

//

// Info Box Field Names////////////////

%26amp;request_text_field_name=request_text%26amp;

%26amp;p_user_id=2345%26amp;



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!Sending form data
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

No comments:

Post a Comment