# Passing Variables bettween Director & Flash

**URL:** <https://forum.kirupa.com/t/passing-variables-bettween-director-flash/34853>\
**Category:** flash\
**Created:** [November 7, 2003, 3:09am UTC](https://forum.kirupa.com/t/passing-variables-bettween-director-flash/34853 "2003-11-07T03:09:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leonidas\_II](https://avatars.discourse-cdn.com/v4/letter/l/bc79bd/32.png) [@Leonidas\_II](https://forum.kirupa.com/u/Leonidas_II)\
**Post date:** [November 7, 2003, 3:09am UTC](https://forum.kirupa.com/t/passing-variables-bettween-director-flash/34853/1 "2003-11-07T03:09:35Z")

</div>

I’m trying to use some functions in Director by wrapping a Flash movie in a Director movie, both running locally as a projector. I need to pass a string variable from the Flash movie into the Director instance. Here’s what Macromedia has to say on the subject:

Using GetURL: (any string)

Requires the Director movie to have a behavior called ‘on GetURL me, stringVariable’

When using a movie script instead of a behavior the ‘me’ is not needed in the above handler.

The ‘stringVariable’ value will be the holder for the passed value from Flash (i.e. stringVariable = \<any string\>).

This method is executed every time a ‘GetURL’ event is issued in the Flash movie.

Does anyone have any idea what the syntax would need to look like in the Flash movie?

Thanks in advance!

-Leo

---

<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:** [November 7, 2003, 4:21am UTC](https://forum.kirupa.com/t/passing-variables-bettween-director-flash/34853/2 "2003-11-07T04:21:14Z")

</div>

Also, the Flash documentation states that ‘fscommand’ can pass variables to Director but I cannot find any documentation on how Director can receive these variables. I can only find examples that deliver data to Javascript.

Thanks again!

-L
