# Vairbale in onClipEvent

**URL:** https://forum.kirupa.com/t/vairbale-in-onclipevent/176710
**Category:** Uncategorized
**Created:** [January 26, 2006, 9:27am UTC](https://forum.kirupa.com/t/vairbale-in-onclipevent/176710 "2006-01-26T09:27:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dColumbus](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@dColumbus](https://forum.kirupa.com/u/dColumbus)
#### Post date: [January 26, 2006, 9:27am UTC](https://forum.kirupa.com/t/vairbale-in-onclipevent/176710/1 "2006-01-26T09:27:16Z")

</div>

How can I pass a variable defined on the main stage to a onClipEvent handler?

This is what I’m trying to do:

in a frame:

```auto
myVar = "[hello molly!"](http://www.devincolumbus.com/)

```

then, I’ve got a movieClip with this attached to it:

```auto
onClipEvent (load) {
path = myVar;
}

```

why doesn’t path know what myVar is? I’ve tried using \_level0 and \_parent… HELP!
