PDA

View Full Version : Calling variable to set a frame of an mc


wownflutter
02-02-2006, 06:41 PM
I have a variable declared in my object tag...

now I want that variable to be called to make an mc (button) gotoAndStop on a frame.

How is this done? I seem to have a glitch

Thx

goliatone
02-06-2006, 11:17 AM
myObject= new Object()
myObject.frameNum=23;
button.onRelease=function(){
mc.gotoAndStop(myObject.frameNum)
}

that code works...but i dont understand from where do you make that call...but you get an idea with this, right?!