PDA

View Full Version : searching from flash


cazzon
07-29-2001, 09:47 AM
Hi all,

can anyone tell me how to replicate this in flash?

<form action="/cgi-bin/tourquoise/tourquoise.pl?">
<INPUT TYPE=hidden name="etype" value="web">
<input width=30 type=text name=search value=""><input type="submit" name="Go" value="Go">

The results of this query will be sent to an iframe.

Thanks.
c.

Jesse
07-29-2001, 10:33 AM
frame 1:
etype = "web";

then you need an input text which takes the variable 'search' and a button which has:
getURL ("/cgi-bin/tourquoise/tourquoise.pl", "", "GET"); that should work.

cazzon
07-29-2001, 10:59 AM
Oki Jesse, it works fine.
Thanks!

ATB,
c.

cazzon
07-29-2001, 11:12 AM
I forgot a candy (well, at least kinda behaviour for a preload in order to do not get users bored while loading....); how to show within the movie any message (such "loading....", "searching....", aso) whilst the html page loads the contents queried from flash?
I've thought to a clip having a blank stopped 1st frame, a 2d frame holding the writing "loading...." and a 3d one having the action goto frame 1, but how to tell the movie to show these stuff whilst the contents get loaded and after it was already loaded? Wonder any complex javascript to be called from?

Thanks,
c.

Jesse
07-29-2001, 11:18 AM
I'm finding it hard to understand you. see the percentage preloader tutorial.

cazzon
07-29-2001, 11:32 AM
I know I'm hard to translate in english, pliz excuse me.
I meant, not yet a preloader (I would have said just "something that achieves the relaxing effect that a preloader have in order to avoid that users get bored when waiting for a content to be completely loaded"), but something (a movie clip) that displays "loading...." or any other messages when the html page (to say, the results of the quesry performed through the form of which we discussed above) is loading. Then, after the contents has been completely loaded, the message disappears. That's all.
Hope I was a bit clearer now :-).

Cheers,
c.

Jesse
07-30-2001, 07:39 AM
o i c. well you could have a looping movie clip which is invisible to begin with then set it visible when you click the submit button:
_root.clipName._visible = true;
but I imagine the form submission shouldn't take long...
maybe you could popup the data in a new window instead:
getURL ("/cgi-bin/tourquoise/tourquoise.pl", "_blank", "GET"); as the code I gave you originally will move the browser from the Flash file to the CGI, and exit the Flash file.

cazzon
07-30-2001, 11:41 AM
Hallo Jesse.

I'll try the system you suggested; btw, time ago I've found a script which worked as a cacher, allowing a div to hide the contents of the page where it was embedded into, then to show it once the contents were completely loaded. Though I dunno how to split that code (transferring the behaviours to flash rather than into the html document) in order to tell the page to rule the loading clip with passing to the blank third clip's frame once the html was completely loaded.

Cheers,
c.
P. s.; I've sent you a mail to your request about graphic help. Tell me.