8 Replies Latest reply on Oct 18, 2008 8:23 AM by Varun Upadhyay

    Dynamic Masking by Movieclip

    Varun Upadhyay
      Hi,
      I am facing a silly problem but i can't figure out that solution. so i want urgent help.

      I am taking a Movieclip, which has some animation of Square Box, as a Masking Movieclip. Now I am loading a Image in a blank Movieclip. And giving Masking of that Sqaure Box Movieclip. But thats not showing me masking. Both are visualizing individually.

      Code is As Follow:
      //1. blank_mc is on Stage and a blank movieclip.
      //2. MaskMC is a animated Movieclip of SquareBox and attaching via code in Stage
      //3. Setting Mask
      blank_mc.loadMovie('Images/image1.jpg');
      _root.attachMovie('MaskMC', 'mask_mc', 10);
      blank_mc.setMask(mask_mc);


      But both Movieclips are coming in stage individually. Am i missing some thing or have to do any change. Please help me urgently