Skip navigation
Currently Being Moderated

mask problem

Jun 13, 2012 1:49 AM

Tags: #flash #cs5.5 #actionscript_3.0

I am trying to mask a movieclip. But mask (shape of rectangle) is displayed over the content instead of masking the content in flash as3.



Please anyone help me...

  • Currently Being Moderated
    Jun 13, 2012 3:43 AM   in reply to bhargavi reddy



    Please try this, it is working perfectly.






    //mc is the instance of stage movieClip which has to be shown.

    //myMask is instance of movieclip in which region movieClip mc is to be shown.

    mc.mask = myMask;


    mc.addEventListener(Event.ENTER_FRAME, onEnter);


    //Keep movieClip mc at initial postion and myMask in center of the stage.

    function onEnter(e:Event):void


              mc.x += 10;





    Mark as:
  • Currently Being Moderated
    Jun 14, 2012 2:26 AM   in reply to bhargavi reddy



    It is good tht you gotthe solution, you stated that problem is something else, please share the problem so that i can also be aware about that.





    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points