Here is how to setup a search box with Atomz.com (you could use this as a model for other search scripts you may use)
- In your Flash form give the text input field an acceptable name, I used "keyword"
- Create your button. Then select your button and choose Properties from the right-click menu.
- The first line of the Actions field should be On (Release)
- Click the + sign over the Actions field and choose Set Variable
- In the Variable field, type strURL (it's not important what you call it I used strURL for this example)
- Click the button next to the variable field (I don't know what it is called) and select the "Expression" toggle.
- In the value field type:
The quotes are important. In your expression, where I have "nnnnnnnn-spxxxxxxxx" substitute your Atomz account number. You can find this on your HTML form, it will be the value of the hidden input field named "sp-a".
- The second line of your action field should now look like this:
- Click the + sign above the Action field and choose Get URL in the Get URL fields:
enter Eval(strURL) for the URL field
set Window as you desire "_self" is the logical default
set Variables to "Don't Send"
- That's it, your Action statements should now look like this:
-Click OK
That should be it!
This code is for Flash5. If you are using 4 you need to change the + to & before the keywordVery easy
I don't know where to start in passing XML results back into flash but I am going to look into that soon...
Hope this helps someone,
------------------
Jeremiah
FreakScene - The Dinosaur Jr Audio/Visual Archive My UBB This message has been edited by freakscene on January 04, 2001 at 02:45 PM