Skip to main content
Known Participant
September 11, 2011
Answered

referancing objects in the level above the movie clip

  • September 11, 2011
  • 1 reply
  • 591 views

i want to referance objects in the level above the movie clip that i have the AS in.  what i mean is that i have a movie clip on the stage, and that movie clip has some actionscript in it, and that AS needs to refer to an object on the main stage, how would i do that?  i have tried parent and stage 1, but neither seem to work

This topic has been closed for replies.
Correct answer kglad

parent (cast as a movieclip) is the correct path.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
September 11, 2011

parent (cast as a movieclip) is the correct path.

Known Participant
September 11, 2011

ok, so let's say that i have a MC on the stage, then inside that MC, there's a frame, with some code attached to it.  i want to referance another MC on the main stage, can u give me some example code on how to do that please, thanks

Known Participant
September 11, 2011

ok,  nvm, i get it now, thanks so much