# Passing Variables from Another Timeline

**URL:** <https://forum.kirupa.com/t/passing-variables-from-another-timeline/210098>\
**Category:** flash\
**Created:** [December 14, 2006, 10:39pm UTC](https://forum.kirupa.com/t/passing-variables-from-another-timeline/210098 "2006-12-14T22:39:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arodono](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@arodono](https://forum.kirupa.com/u/arodono)\
**Post date:** [December 14, 2006, 10:39pm UTC](https://forum.kirupa.com/t/passing-variables-from-another-timeline/210098/1 "2006-12-14T22:39:08Z")

</div>

Thanks in advance for your help.

I have a flash product order form. In the last frame, you add you email address and hit submit to send the data using formmail. I need to pass variables that I have specified in other timelines as well as the email address. What scripting can I use to make this happen?

For example: In frame 1 on the main timeline, I have a movie clip called “color.” This movie clip has several frames, each having a different color valiable (Color = “blue”😉 In frame 2 on the main timeline, I have my form where the user enters their email address and click’s the submit button. How do I make sure that formmail will receive the Color variable value from the movieclip in frame 1 in addition to the email address in the form.

Something like this on the submit button??

on (release) {  
recipient = "tony@aleven.com";  
subject = “Build Your Own Umbrella”;  
\_root.mc.Color = Type;  
loadVariablesNum(“[http://www.url.com/cgi-bin/formmail.pl](http://www.url.com/cgi-bin/formmail.pl)”, “0”, “POST”);

}  
}

Thanks!
