Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Variables from FLASH to HTML then to (?)VB

Status
Not open for further replies.

tilotama

Programmer
Aug 24, 2001
25
MY
i have this crazy program that requires variables assigned in Flash, for example

varNumber = 1;

passed to an HTML page called 'Variables.html'.

The html page will then pass varNumber=1 to a VB executable file that is already opened by the HTML document. How can i do this?

This program will actually integrate VB with HTML as well as Flash. is it possible?

or is there an easier way to do this.

thanks.[ponytails2]
 
you could try to do this by using JavaScript to assign values to hidden fields inside the HTML then POST the form containg them to another page which in turn can do the passing to your executable.
 
hey thanx....

but i found out that Flash can actually communicate directly to VB. yay!!!!

someone forwarded me a pdf document about this. im not sure where he got it from, but its from this website:
 
Simple solution ... I actually pass vars back and forth via ASP to gather information (using Flash). Here's how you go about getting your variable (hope you're familiar with ActionScript! :p )

In your movie, place this into a frame:

// declare LoadVars object
var lv = new LoadVars();
// set property of the object so we can use POST method
lv.varNumber = 1;
lv.send("variables.html?varNumber=1","_self","GET");

In your HTML file, add some javascript to parse out the querystring, retrieve the number, and pass it to your VB executable.

I know you've found another method, but I like this one, so I thought I'd share it in case others wanted to know.

I think I originally learned this from actionscript-toolbox.com ... but I don't remember.

HTH

Greg Tammi, IT Design & Consultation
Work: Home:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top