# Passing vars between 2 html files

**URL:** <https://forum.kirupa.com/t/passing-vars-between-2-html-files/28673>\
**Category:** Uncategorized\
**Created:** [August 16, 2003, 4:05pm UTC](https://forum.kirupa.com/t/passing-vars-between-2-html-files/28673 "2003-08-16T16:05:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mindfriction](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mindfriction/32/172_2.png) [@mindfriction](https://forum.kirupa.com/u/mindfriction)\
**Post date:** [August 16, 2003, 4:05pm UTC](https://forum.kirupa.com/t/passing-vars-between-2-html-files/28673/1 "2003-08-16T16:05:15Z")

</div>

Hi guys,

This is really puzzling me. Ive done a search through the forums with not much help.

I have 2 HTML files with embedded flash movies.  
One HTML file is the main area (main.html) with a flash movie called gallery.swf which has a grid of thumbnail pictures, and the second HTML file (popup.html) is a pop up chromeless window for enlarged images depending on the thumb’s the user clicks. Essentially I need to pass variables to popup.html and ulimately its embedded movie enlarged.swf. These variables will basically be id’s of the clicked thumbnails which I will use to locate the correct enlarged images on the server to load into into a container clip within enlarge.swf.

How can I do this??? please help!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 16, 2003, 11:26pm UTC](https://forum.kirupa.com/t/passing-vars-between-2-html-files/28673/2 "2003-08-16T23:26:26Z")

</div>

7 views on a no help ☹ Anyone done this before?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 17, 2003, 12:14am UTC](https://forum.kirupa.com/t/passing-vars-between-2-html-files/28673/3 "2003-08-17T00:14:29Z")

</div>

Well I eventually figured out how to do it myself, but anyone out there who is looking at this thread and wants to know a way of passing varaibles between too completely seperate swf files (ie 2 swf’s embedded into seperate html pages) the best tutorial I found was one by [Actionscript.org](http://Actionscript.org)’s Jesse Stanford. Jesse is an absolute gun (probably partly to do with being an Aussie just like me !).

here’s the tute

:cowboy: [http://www.actionscripts.org/tutorials/intermediate/passing\_variables\_around/index.shtml](http://www.actionscripts.org/tutorials/intermediate/passing_variables_around/index.shtml)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 17, 2003, 12:18am UTC](https://forum.kirupa.com/t/passing-vars-between-2-html-files/28673/4 "2003-08-17T00:18:16Z")

</div>

i wouldnt use PHP for this, i would use LocalConnection

search the forums for more on localconnect
