1 Feb 01:18
Re: Some questions on masking views/sprites when displaying rounded corners with AS3
Raju Bitter <rajubitter <at> googlemail.com>
2010-02-01 00:18:52 GMT
2010-02-01 00:18:52 GMT
Thanks for the quick response, Max. I'll send you the changeset tomorrow. Cheers, Raju On Jan 31, 2010, at 8:02 PM, Max Carlson wrote: > Wow - this is awesome - thanks Raju! Replies below: > > Regards, > Max Carlson > OpenLaszlo.org > > On 1/31/10 7:42 AM, Raju Bitter wrote: >> Henry, Max, I've done some testing to improve the functionality for rounded corners in AS3 based runtimes. Currently clipping still uses a rectangle mask independent of the cornerradius. I made some modifications to enable clipping. Here's a screenshot of the small sample app I used for testing: >> >> >> >> >> I basically use a view with a drop shadow and rounded corners and yellow background. The 2nd item is the same view class with a red child view, centered and reduced by 12px in length and height. The 3rd item is the same yellow view with a child view containing an image that's larger then the parent view. All of the first three items use clip="true" on the yellow view. The 4th item is the same as the 3rd with clipping turned off. >> >> In this process I ran into some thinks that are unclear to me in lps/kernel/swf9/LzSprite.as: >> >> 1) LzSprite.clip property >> Seems to be never set. The method LzSprite#setClip just calls applyMask and removeMask. But for(Continue reading)
RSS Feed