ch_bowen
10-07-2004, 09:50 AM
I have a simple button that I want to create that will handle mouse events. The problem I am having is that I only want the region of the .swf (s) clickable not including the transparent region of the .swf, .jpg, or .png. I do not want any other part of the region clickable in the button. Is masking possible in Laszlo and if anyone has an example on how to handle this, it would be greatly appreciated.
<canvas>
<class name="mouseview"
extends="basebutton"
onmouseover="this.setResourceNumber(2)"
onmouseout="this.setResourceNumber(1)"
onmousedown="this.setResourceNumber(3)"
onmouseup="this.setResourceNumber(2)"/>
<resource name="swfTest">
<frame src="but1_basicUp.swf"/>
<frame src="but1_basicOver.swf"/>
<frame src="but1_basicDown.swf"/>
</resource>
<resource name="test">
<frame src="but_basicfacts.swf"/>"
</resource>
<!-- Second, assign the resource to a basebutton tag -->
<mouseview clip='true' x="60" y="60" resource="swfTest">
</mouseview>
</canvas>
<canvas>
<class name="mouseview"
extends="basebutton"
onmouseover="this.setResourceNumber(2)"
onmouseout="this.setResourceNumber(1)"
onmousedown="this.setResourceNumber(3)"
onmouseup="this.setResourceNumber(2)"/>
<resource name="swfTest">
<frame src="but1_basicUp.swf"/>
<frame src="but1_basicOver.swf"/>
<frame src="but1_basicDown.swf"/>
</resource>
<resource name="test">
<frame src="but_basicfacts.swf"/>"
</resource>
<!-- Second, assign the resource to a basebutton tag -->
<mouseview clip='true' x="60" y="60" resource="swfTest">
</mouseview>
</canvas>