all groups > flash actionscript > january 2006 >
You're in the

flash actionscript

group:

getting form data into flash


getting form data into flash MaxVT103
1/17/2006 10:38:01 PM
flash actionscript:
Ok, I have searched this forum and a few others trying to find a way to get
data into flash from a form. By this I don't mean creating a new page that
loads after I click a button with the form data appanded to the end of the
header. I am wondering if I can just grab the data that is in a form on the
same page a swf is located. I will try to explain this the best I can.

I have an html page that contains a form

<form name="input_form">
<input type="text" name="textVar" value="something">
</form>

but also on that page is a swf file. I want to be able to take the "textVar"
value and send it into flash where I can then use it. I have looked through
using loadVars class, loadMovie, getURL("","","GET") methods and I can't figure
out how I can get it to work. If you are wondering why I want to do this, I
know flash can't browse the system because of security reasons, but an html
form can so I want to try to use javascript to press the browse button to get
that to pop up then once the user has the file they want I want flash to grab
the string of the location to create a clean interface but not actually upload
the file. I saw an example of this done online but it didn't go into how to
get that form data back into flash.
Re: getting form data into flash Motion Maker
1/18/2006 5:12:17 PM
If you want to press the user to use Flash 8 player, then you can have Flash
browse for files with user at the helm.

--
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
[quoted text, click to view]
Ok, I have searched this forum and a few others trying to find a way to get
data into flash from a form. By this I don't mean creating a new page that
loads after I click a button with the form data appanded to the end of the
header. I am wondering if I can just grab the data that is in a form on the
same page a swf is located. I will try to explain this the best I can.

I have an html page that contains a form

<form name="input_form">
<input type="text" name="textVar" value="something">
</form>

but also on that page is a swf file. I want to be able to take the
"textVar"
value and send it into flash where I can then use it. I have looked through
using loadVars class, loadMovie, getURL("","","GET") methods and I can't
figure
out how I can get it to work. If you are wondering why I want to do this, I
know flash can't browse the system because of security reasons, but an html
form can so I want to try to use javascript to press the browse button to
get
that to pop up then once the user has the file they want I want flash to
grab
the string of the location to create a clean interface but not actually
upload
the file. I saw an example of this done online but it didn't go into how to
get that form data back into flash.

AddThis Social Bookmark Button