no luck... the subview overlays the mask (obscuring the shape) and no masking happens :(

<canvas>
<drawview clip="true">
    <handler name="onconstruct">
            this.moveTo(100, 100);
            this.lineTo(100, 200);
            this.quadraticCurveTo(150, 250, 200, 200);
            this.closePath();

            this.fillStyle = 0x0000ff;
            this.fill();
    </handler>
    <view name="thatIWantClipped" resource="photo.jpg"/>
</drawview>
</canvas>


Adam Wolff wrote:
Max is actually the one who would know, but did you try something like 
this?

<drawview clip="true">
    <handler name="onconstruct">
        //draw it
    </handler>

    <view name="thatIWantClipped">
        ...

A

On Jun 9, Sarah Allen wrote:

  
Thanks Tucker.  I actually asked Adam the other day, and he didn't know
either.  So, I'll conclude it is not yet implemented.  It should be
straightforward to enable for swf7 and up... I'll move the conversation to
laszlo-dev.

P T Withington wrote:
    
I don't believe that has been implemented.  We have non-rectangular click
regions, but not masks, AFAIK.  Adam (cc-ed) may know.

On 2006-06-09, at 22:17 EDT, Sarah Allen wrote:

      
Is there a way to do non-rectangular masking in LZX?  seems like there
should be a way, but wasn't sure where to look in the docs.

Thanks,
Sarah

_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user
        
    

_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to