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 Chris Miller 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 MC's to main scene

Status
Not open for further replies.

skrause

Programmer
Feb 10, 2001
18
US
To the fellowship:

Greetings. I am developing a tool that has a calculator within Flash that accepts form inputs, completes the calculation, and should pass the calculation result to the proper form input box.

The calculator is within a movie clip. It performs the calculation just fine, but I can not get the result passed to the input box from the MC.

Any suggestions on what I am missing? I have tried using tellTarget within the calculator MC to tell the top-level input box to equal the result of the calc w/in the MC to no avail.

Thanks in advance for the advice.
 
Have you tried setting the variables in the main movie and use those named variables in the calculator mc?

i.e.
_root.var1 = so&so;

That way, variables should be global to the whole movie and mcs.

Regards,
mywink.gif
ldnewbie
 
old:

I set the variable as you described within the MC, using a button click inside the MC to set it.

Thanks for the tip!
Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top