spark.components.VideoDisplay and the DoubleClick-Event
I stumbled upon and interesting problem concerning spark's VideoDisplay-Component. It seems that it doesn't dispatch DoubleClick-E开发者_开发问答vents.
For better understanding look at the following code:
<s:VideoDisplay [..] doubleClickEnabled="true" doubleClick="{trace('VideoDisplay_DoubleClick')}" click="{trace('VideoDisplay_Click')}" />
<s:Panel [..] doubleClickEnabled="true" doubleClick="{trace('Panel_DoubleClick')}" click="{trace('Panel_Click')}" />
The Click-Event works for both components. But the DoubleClick-Event is only handled by the Panel-Component.
Do you guys have any idea why?
The documentation is here: http://www.adobe.com/livedocs/flex/3/langref/mx/controls/VideoDisplay.html#eventSummary In the events section.
doubleClick
"Dispatched when a user presses and releases the main button of a pointing device twice in rapid succession over the same InteractiveObject when that object's doubleClickEnabled flag is set to true.
from InteractiveObject"
If it doesn't work, then it's a bug.
But, have you set your object's "doubleClickEnabled" flag to true?
Oz
4dtext - website enhancement tools
精彩评论