Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > ActionScript Forums Group > Simple Stuff (Newbies)

Reply
 
Thread Tools Rate Thread Display Modes
Old 02-13-2001, 07:05 PM   #1
xperimental
Registered User
 
Join Date: Feb 2001
Location: 23rd demension
Posts: 14
Send a message via ICQ to xperimental
Question

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
xperimental is offline   Reply With Quote
Old 02-13-2001, 11:33 PM   #2
Jesse
Administrator
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: Australia
Posts: 8,612
Default

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
__________________
Cheers

Jesse Stratford
ActionScript.org Cofounder
Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org

Please don't email or PM me Flash questions, that's what the Forums are for!

Please don't rely on me reading my PMs either. Email me about important stuff.
Jesse is offline   Reply With Quote
Old 02-14-2001, 04:11 AM   #3
xperimental
Registered User
 
Join Date: Feb 2001
Location: 23rd demension
Posts: 14
Send a message via ICQ to xperimental
Question Code Breakdown

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




xperimental is offline   Reply With Quote
Old 02-14-2001, 06:16 AM   #4
Jesse
Administrator
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: Australia
Posts: 8,612
Default

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
__________________
Cheers

Jesse Stratford
ActionScript.org Cofounder
Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org

Please don't email or PM me Flash questions, that's what the Forums are for!

Please don't rely on me reading my PMs either. Email me about important stuff.
Jesse is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing variables to a projector (exe) file mamaz Projectors and CDs 3 09-20-2005 03:55 PM
Passing variables to / from loadMovie clips cyanescent ActionScript 1.0 (and below) 2 10-12-2004 10:25 AM
Passing variables in a URL using getURL() oka_ ActionScript 2.0 2 06-21-2004 12:51 AM
passing variables to flash - too long? babagadude Server-Side Scripting 2 06-03-2004 02:52 PM
Passing variables between movies? Difflam ActionScript 1.0 (and below) 2 03-20-2002 10:16 PM


All times are GMT. The time now is 01:51 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.