masking graphics

has anyone been able to make this call actually work..or am i just missing the point....

isHitTestMasked

...in a loop...

1
2
3
4
5
6
    pictureObj[i] = display.newImage( pathStr ,0,0)--its 0,0 coz i move it later
   local themaskPathStr="masks/".."mask"..i..".png"
   local mask = graphics.newMask( themaskPathStr )
   pictureObj[i]:setMask( mask )
   pictureObj[i].isHitTestMasked = true
   pzObject[i]:addEventListener( "touch", onTouch )

there was a bug, and masking was not working, until the next daily build after latest stable release. If you have a subscription, download daily build 600 or later.

Thanks for the info...

views:1180 update:2011/10/4 17:12:07
corona forums © 2003-2011