PDA

View Full Version : Passing Variables


xperimental
02-13-2001, 07:05 PM
Wasn't sure if this was the proper place to post this question, oh well, yell at me if you want.

What I have is a form that has a variable "total" it is a numeric answer to a mathamatical equation.

I then want to pass the answer "Total" into a new window and carry on the equation.

So how do I pass the variable "total" into a new movie, to continue the equation.

I don't want to keep it in the same FLA because I want the user to be able to go back and review the first page without losing the information they first posted.

Any ideas are appreciated as always!

XperiMental

Jesse
02-13-2001, 11:33 PM
To just send the total variable try:

loadMovieNum ("someOtherClip.swf?total=" + total, 0);

To send all variables in the movie try:

loadMovieNum ("someOtherClip.swf", 0, "GET");


Note that you can use GetURL in place of LoadMovieNUM here.

Cheers

Jesse

xperimental
02-14-2001, 04:11 AM
Okay I've been playing with this for a while and am having a hard time with it. Have you tested that to see if it works?

Just the one variable is what I'mm working with. And I am using GETURL if that will make a difference.

I'll keep bustin though!

XperiMental

Jesse
02-14-2001, 06:16 AM
Yes it works fine. It may not work on your PC though. That uses HTML variable pass methods so it's made to work ona webserver. If you run a local webserver test it on that, or upload it to your site and you'll see it works perfectly well.

My text script was:

testVar = "blah blah";
loadMovieNum ("clip2.swf?testVar=test " + testVar, 0);

clip2.swf has a text field which displayed "test blah blah" (the correct output).

Cheers

Jesse