why my ProgressBar can't capture the mouse down event?
Posted
by donarlee
on Stack Overflow
See other posts from Stack Overflow
or by donarlee
Published on 2010-05-18T16:57:19Z
Indexed on
2010/05/18
17:01 UTC
Read the original article
Hit count: 174
I use a custom skin as the track skin, but i can't get the mouse down event
protected function application1_creationCompleteHandler(event:FlexEvent):void
{
pBar.addEventListener(MouseEvent.MOUSE_DOWN, onEvent, true);
}
protected function onEvent(event:MouseEvent):void
{
trace("mouse down");
}
]]>
</fx:Script>
<s:layout>
<s:VerticalLayout horizontalAlign="center" verticalAlign="middle" />
</s:layout>
<mx:ProgressBar id="pBar" width="518" height="15"
labelPlacement="center" trackSkin="skins.CustomTrackSkin"
mode="manual" label="" minimum="0" maximum="100"/>
© Stack Overflow or respective owner