Flex HDividedBox prevent dragging
Posted
by Jeremy Mitchell
on Stack Overflow
See other posts from Stack Overflow
or by Jeremy Mitchell
Published on 2010-02-23T00:44:39Z
Indexed on
2010/03/11
19:44 UTC
Read the original article
Hit count: 263
flex
I'd love to be able to prevent dragging of a HDividedBox's divider based on a condition. for example:
<mx:HDividedBox id="hd1" liveDragging="true" dividerDrag="dividerDragHandler(event)"> <Canvas id="c1"/> <Canvas id="c2"/> </HDividedBox> private function dividerDragHandler(event:DividerEvent):void { if (_something > 10) { event.preventDefault(); } }
Any ideas how I can do something like that? And I'd rather not mess with the widths of the child canvases. Thanks.
© Stack Overflow or respective owner