# Passing variables from 1 html to another

**URL:** https://forum.kirupa.com/t/passing-variables-from-1-html-to-another/167660
**Category:** Uncategorized
**Created:** [October 30, 2005, 8:14pm UTC](https://forum.kirupa.com/t/passing-variables-from-1-html-to-another/167660 "2005-10-30T20:14:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kritikal](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kritikal/32/1699_2.png) [@kritikal](https://forum.kirupa.com/u/kritikal)
#### Post date: [October 30, 2005, 8:14pm UTC](https://forum.kirupa.com/t/passing-variables-from-1-html-to-another/167660/1 "2005-10-30T20:14:54Z")

</div>

I was just wondering what would be the “best” way to pass a variable that’s in a swf to another swf located in another html.

something like index.swf embed in index.html and sends a value to a variable to index1.swf embed in index1.html.

What I’m trying to achieve is have a user select the language he wants, plays the rest of the swf and when it reaches the last frame it does something like

```auto

//this is the last frame of splash.swf
if (language == "fr") {    
    _root.container.loadMovie("about.swf"); //_root is on index.swf
    _root.getLanguage(language); //passes the value to a variable in a function
}
else if (language == "eng") {
    _root.container.loadMovie("about.swf");
    _root.getLanguage(language);
}

```

so that works perfectly when splash.swf is loaded into index.swf but now I want the same result but having splash.swf and index.swf on different html
