Accessing movieclip parameters

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

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…

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