Gossamer Forum
Home : General : Internet Technologies :

can swf and html talk?

Quote Reply
can swf and html talk?
i am trying to get a button in an swf to send info to a html page.

example: swf interface picture of USA, click a state, get a page that has a drop down list of all states in a frame on left

that when chosen brings up an interactive swf in the main frame, but how do i display the state that was

initially chosen back at the previous page? click california, and the california interactive swf is up in the

main frame... that make any sense?Unimpressed

thanks in advance
-=zerofox=-
Quote Reply
Re: [zerofox] can swf and html talk? In reply to
You can't dynamically select something from your list in html, but not many other languages can.

You can get your flash movie to load the html page easily but you'd need to pass the clicked state as a parameter so you'd need a dynamic script to pick it up.
Quote Reply
Re: [Paul] can swf and html talk? In reply to
thank you for the reply, which script would you

suggest? i cannot use ASP my server will not support

it, cgi or java, neither of which i am accomplished, but

can fight my way through it...

thanks again
-=zerofox=-
Quote Reply
Re: [zerofox] can swf and html talk? In reply to
Well as I'm a perl fan then I'd say go for perl :)

You would get your flash movie to pass the state along in the url then pick it up with your perl script.
Quote Reply
Re: [Paul] can swf and html talk? In reply to
Maybe a simple script like this may work.

Code:
#!/usr/bin/perl
use CGI qw/ :standard /;
print redirect( param( 'g' ) );

Assuming you call the script something like "j.cgi", you can give it one parameter, "g" to and it will redirect you to that URL.
Quote Reply
Re: [Aki] can swf and html talk? In reply to
i appreciate all the input, only i missed the code that you said

you had for an example...
-=zerofox=-