Skip to main content
Participant
April 2, 2009
Question

Defining Movie clips that appear later in the timeline

  • April 2, 2009
  • 1 reply
  • 323 views
I am trying to figure out how to reference something that appears later in the timeline with Actionscript on the first keyframe without receiving run time errors such as "undefined", or "null references". Trying to define the objects using references (ie. var myMC:MovieClip) doesn't seem to cut it. Short of placing items on the first keyframe and then pushing them off the stage out of view, I have yet to find an elegant solution for this.
Help?
This topic has been closed for replies.

1 reply

Ned Murphy
Legend
April 2, 2009
Controlling visibilty is an alternative to pushing things off stage. You could also preset variables to hold certain values in the first frame and utilize them in the frame where the objects finally appear. The bottom line is, you can't target something that isn't present