A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [RESOLVED] MXML Mask Issue

Hybrid View

  1. #1
    Member
    Join Date
    Mar 2004
    Posts
    135

    resolved [RESOLVED] MXML Mask Issue

    I've run into a slight problem that I am not seeing the answer to. I'm trying to apply a mask (a canvas) to another canvas. But for some reason the mask is not doing it's job.

    Below is my code:
    Code:
    	<mx:Canvas id="masker" 
    		width="300" height="400"
    		visible="false" backgroundColor="#000000" />
    		
    	<mx:Canvas id="target"
    		width="400" height="700"
    		mask="{masker}"
    		backgroundColor="#FF0000">
    		<mx:Canvas backgroundColor="#00FF00"
    			width="50%" height="50%"
    			right="0" bottom="0" />
    		<mx:Canvas backgroundColor="#00FF00"
    			width="50%" height="50%"  x="0" y="0"/>
    	</mx:Canvas>
    Any help on this would be greatly appreciated.

  2. #2
    Member
    Join Date
    Mar 2004
    Posts
    135
    Found issue. Had an actionscript piece of code that was changing the mask value of the canvas.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center