# JS and Flash cross interaction

**URL:** <https://forum.kirupa.com/t/js-and-flash-cross-interaction/307970>\
**Category:** programming\
**Created:** [April 14, 2010, 10:00am UTC](https://forum.kirupa.com/t/js-and-flash-cross-interaction/307970 "2010-04-14T10:00:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Esseti](https://avatars.discourse-cdn.com/v4/letter/e/bb73d2/32.png) [@Esseti](https://forum.kirupa.com/u/Esseti)\
**Post date:** [April 14, 2010, 10:00am UTC](https://forum.kirupa.com/t/js-and-flash-cross-interaction/307970/1 "2010-04-14T10:00:00Z")

</div>

Setup:  
index.html - with a flash object that has a button “Pick Image”, that calls a popup (gallery.html)  
gallery.html - just a list of images, when called by clicking the button in index.html it should run a function in the flash object in index.html

Example:

1. Click on “Pick Image” button on index.html
2. gallery.html pops up
3. User selects an image
4. Call to index.html and a funciton in the flash object there

Can it be done? I know that there is Flash JS interaction within one document, but what about 2? I’ve found different ways to communicate between Flash&JS, but I didn’t see it being done in two different documets (htmls).
