7 Replies Latest reply on Jun 18, 2014 6:44 AM by kglad

    setMask() using loadMovie()

    Ron Colmen Level 2

      I need to load an external swf in to a movieclip and use setMask() to mask another movieclip. This is not working. Is it possible to do this in AS2?

       

      example:

      loadMovie("http://www.example.com/swfFile.swf", _root.mc1_mc.mc2_mc); //this external swf's instance name is clip1

       

      abc_btn.onRelease=function(){

          _root.mc1_mc.mc2_mc.createEmptyMovieClip("clip0", _root.mc1_mc.mc2_mc.getNextHighestDepth());

          _root.mc1_mc.mc2_mc.clip0.setMask( _root.mc1_mc.mc2_mc.clip1);

      }