Flash8: Passing variables when a movie clip loads

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