# Accessing movieclip parameters

**URL:** <https://forum.kirupa.com/t/accessing-movieclip-parameters/34643>\
**Category:** Uncategorized\
**Created:** [November 4, 2003, 8:43pm UTC](https://forum.kirupa.com/t/accessing-movieclip-parameters/34643 "2003-11-04T20:43:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bricar77](https://avatars.discourse-cdn.com/v4/letter/b/df705f/32.png) [@bricar77](https://forum.kirupa.com/u/bricar77)\
**Post date:** [November 4, 2003, 8:43pm UTC](https://forum.kirupa.com/t/accessing-movieclip-parameters/34643/1 "2003-11-04T20:43:32Z")

</div>

I have a button in a movie that I want to set a global variable to a new value when clicked. I want it to access a parameter of a movie clip that this same button loads onto the movie for the new global variable value. I have the final line under this button’s onrelease script with something like this:

globalvariable1 = movieclip.parameter;

Everything is on level 0 and I’ve tried prefixing everything with \_root. but it didn’t make a difference, the global variable still wasn’t changed. I’m a newbie so don’t laugh if this is a really dumb question! Thanks for your help!

BriCar77  
[brian\_carey77@ou.edu](mailto:brian_carey77@ou.edu)

---

<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 4, 2003, 9:00pm UTC](https://forum.kirupa.com/t/accessing-movieclip-parameters/34643/2 "2003-11-04T21:00:52Z")

</div>

it’s not very clear, but if i understood correctly what you’re trying to do, the parameter will be undefined by the time you try to use it coz the clip is not loaded yet…

---

<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 5, 2003, 12:33am UTC](https://forum.kirupa.com/t/accessing-movieclip-parameters/34643/3 "2003-11-05T00:33:36Z")

</div>

That explains alot. So is there a way, in the button script, to tell it to wait till it’s loaded, then access the parameter? Can you put an OnClipEvent inside an On(release) ? Thanks so much for your help!  
BriCar77
