3 Replies Latest reply on Apr 21, 2007 5:59 PM by kglad

    loadClip and attachMovie don't work together?

    SlowX Level 1

      I have an empty movie clip on stage ("mc1") that I use loadClip to get a PNG in there.
      Then I'd like to attach another MC to that same mc1 ("txt1").

      But it won't work.
      Everything else works, and I can attach the txt1 clip to other MCs on the stage, but not mc1.

      var curClip = mc1.attachMovie("txt1", "tempName", mc1.getNextHighestDepth());
      A trace of curClip yields "undefined" as does trace(typeof(curClip));

      Am I trying to break some laws of Flash Physics here?

      (Note: trace(mc1.getNextHighestDepth()); yields 0... why's that?)