Forum Moderators: open

Message Too Old, No Replies

Forms in Flash

Getting frustrated with tuts

         

kingkelly

11:53 pm on Jul 7, 2003 (gmt 0)

10+ Year Member



Alrighty, right now i just want to get a simple form in flash (text field + push button) to search google. T'is simple in HTML, but i cant get it to work in flash.

I name the input field's variable 'q', and put the

loadVariables="http://www.google.com/search,0,POST" code on the submit button. What else do i need? Nothings happening :( Am i missing something? Can somebody outline a simple way to make an easy form in flash?

bird

1:28 am on Jul 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What you wrote here is an assignment of the string "http://www.google.com/search,0,POST" to a variable named "loadVariables". In reality, loadVariables() is a function that you would need to call with the right arguments, and that expects the server to send an URL-encoded string of variables, not an HTML page.
The URL given to loadVariables() also must be in the same subdomain as your movie, which www.google.com probably isn't in your case.

What exactly did you expect to happen?

kingkelly

5:46 pm on Jul 8, 2003 (gmt 0)

10+ Year Member



But every other tutorial i read uses

On (Release)
Load Variables ("http://www.server.com/cgi-bin/myform.cgi", 1, vars=POST)
End On

in there forms. How would i call on an external form?

kingkelly

8:42 pm on Jul 8, 2003 (gmt 0)

10+ Year Member



ACtually i just found out that GetURL is the one i should use, since ill beopening the google page. For those interested:

Simple Form in Flash

1. Make your input text field. Put variable to "query" or whatever it should be.
2. Make submit button. Make it a symbol, open the actions panel. Double click GetURL.
3. In the URL field, add [google.com...] or [yoursite.com...]
4. You can make it open in a blank window if you like. You can also use the components window to drag in pre-made submit buttons, radio, text fields, etc...

bird

1:12 pm on Jul 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



But every other tutorial i read uses

On (Release)
Load Variables ("http://www.server.com/cgi-bin/myform.cgi", 1, vars=POST)
End On

Maybe, but that's not what you wrote in your first post. Nor did you say that you want to open the target page in the browser window, instead of processing it within Flash.
I have no idea about your level of knowledge, so I can only refer to what you write.

But it looks like you found the solution on your own now. Good for you! :)

kingkelly

5:30 pm on Jul 9, 2003 (gmt 0)

10+ Year Member



Alrighty, so how would i get these dang radio buttons to work?

Say i want the user to type in the search text, select an option from a few radio buttons, and press submit. Up pops the google search results in a new window.

[google.com...] is a sample string which i want to produce.

i named the input field's variable "q". Somewhere on the radio button's properties, i should be able to put in "hl=en". Anybody know where i enter the radio button's value? Much appreciated....