# Flash8: Passing variables when a movie clip loads

**URL:** <https://forum.kirupa.com/t/flash8-passing-variables-when-a-movie-clip-loads/230117>\
**Category:** flash\
**Created:** [June 22, 2007, 6:52pm UTC](https://forum.kirupa.com/t/flash8-passing-variables-when-a-movie-clip-loads/230117 "2007-06-22T18:52:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shawno](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@shawno](https://forum.kirupa.com/u/shawno)\
**Post date:** [June 22, 2007, 6:52pm UTC](https://forum.kirupa.com/t/flash8-passing-variables-when-a-movie-clip-loads/230117/1 "2007-06-22T18:52:54Z")

</div>

I have a function set up on the main timeline of a movie. As the user passes through the various movie clips in the Flash piece, I am passing variables to the function which forwards them to an external web page. This functionality has worked in previous situations where the function was “triggered” by a mouse event (i.e onRelease). I am trying to get this same functionality to work when a movie clip(s) are loaded.

The code I am using at the (movie clip level) is:

onload=function () {  
\_root.sendVars(“variablename”,“variablevalue”);  
}

I have tried various iterations with this code both within the move clip itself, and attached to the clip but no luck…

Any clues??

TIA

- Shawn
