ActiveDen

SetMask problems

132 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 1 and 9 items
  • United Kingdom
  • Referred between 1 and 9 users
smoke_e_joe says

Hi people little help needed if anyone can. I have one container movie clip which holds other movie clips called from xml. this content is scrollable and is masked using container.setMask(masker);

Inside the other movieclips i have images which i want to mask but image.setMask(masker); wont work. And there not the same masks there on the same level as tehre being referenced from

I swear i read something bout this b4 that you can’t setMask within itself that it only applies to the top layer.

Is this true and does anyone have any work arounds???

Thanks

3 years ago
6471 posts
  • Has been a member for 4-5 years
  • Won a Competition
  • Contributed a Tutorial to a Tuts+ Site
  • Contributed a Blog Post
  • Grew a moustache for the Envato Movember competition
  • Community Moderator
  • Beta Tester
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 50 and 99 items
  • United Kingdom
  • Referred between 10 and 49 users
MSFX says

i’m not sure but you could apply the lower masks, draw it using bitmapdata and then apply the result as the top layer mask ;)

3 years ago
MSFX is a moderator
1945 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Sold between 5 000 and 10 000 dollars
  • Bought between 10 and 49 items
  • Netherlands
  • Referred between 10 and 49 users
Emroni says

You cant name 2 objects the same, is that what you have? Youre saying you have different masks called ‘masker’ on the same level, which is impossible. The AS will only pick one of them as the real ‘masker’

Give them different instance names, that might do the trick. Also, place the mask and the images in the same level. If the image holder is in _level0.container, then so must be the mask.

3 years ago
132 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 1 and 9 items
  • United Kingdom
  • Referred between 1 and 9 users
smoke_e_joe says

They are on different levels like this

masker
-container
-content
-2nd masker
-image

Hope this is clearer the masker is set to container. Inside container is content and inside this is the image which i’m trying to set another mask to but it wont take to it even if i apply a mask on the layers it shows up in flash but once i export the swf it shows both the mask and the image.

3 years ago
755 posts
  • Has been a member for 5-6 years
  • Beta Tester
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Bought between 100 and 499 items
  • Croatia
  • Referred between 50 and 99 users
djankey says

when image is loaded set mask…

3 years ago
1945 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Sold between 5 000 and 10 000 dollars
  • Bought between 10 and 49 items
  • Netherlands
  • Referred between 10 and 49 users
Emroni says
when image is loaded set mask…

+1 forgot to say that

3 years ago
132 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 1 and 9 items
  • United Kingdom
  • Referred between 1 and 9 users
smoke_e_joe says

Makes Sense, I’ll give it a bash. Thanks guys or girls which ever the case maybe! :)

3 years ago
132 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 1 and 9 items
  • United Kingdom
  • Referred between 1 and 9 users
smoke_e_joe says

No joy!

3 years ago
by
by
by
by
by