Skip to main content
Peter Nortjè2939446
Known Participant
July 28, 2018
Answered

Create mask to see underneath an upper layer

  • July 28, 2018
  • 3 replies
  • 544 views

Good people, my project requires a mask effect which creates the effect of looking deeper into an object. For example, the upper layer contains an engine and when the mask is applied, the pistons inside the engine are visible. Ideally, the mask should be interactive and dragable by the user.

I have figured out the code for the dragable mask on a mouse click but have not succeded so far in creating the final end result of looking underneath an upper layer through a mask.

Your inputs are higly appreciated 🙂

This topic has been closed for replies.
Correct answer ClayUUID

So... just move the mask and masked layers above the upper layer.

3 replies

Community Expert
July 30, 2018

Try this tutorial. Should help you out.

AS3 Masking

ClayUUIDCorrect answer
Legend
July 29, 2018

So... just move the mask and masked layers above the upper layer.

Peter Nortjè2939446
Known Participant
July 30, 2018

Thanks - will try and give feedback when I am back home. Currently travelling.

kglad
Community Expert
Community Expert
July 29, 2018

as3 or html5/canvas?

Peter Nortjè2939446
Known Participant
July 30, 2018

AS3