5 Replies Latest reply: Mar 3, 2009 5:33 PM by Ned Murphy RSS

    Variables in children

    BrianatArena Community Member
      On my main timeline I define a variable and it works:
      var totalpages:Number = 1;
      trace(totalpages);

      In a child movie clip I try to recall the variable and it traces "undefined":
      trace(MovieClip(parent).totalpages); or trace(totalpages); they don't work.
      What do I do to correct this? Thanks.