I think I am seeing the double click event come in via the
LzTextSprite.handleTextfieldMouse method,
and then getting passed to __ignoreMouseEvent for that case where the text
is selectable
} else if (textfield.selectable) {
....
There's a double click handler that gets installed from the
LzTextSprite.activateLinks method, that
calls handleTextFieldMouse. I just don't understand why I see it called from
my LzTLFTextField object
but not from the native TextField. Must be something else supressing the
double click in the native
textfield case?
On Mon, Jul 26, 2010 at 9:35 PM, Max Carlson <[email protected]> wrote:
> There's code in LzSprite for this:
>
> dobj.addEventListener(MouseEvent.DOUBLE_CLICK,
> handleMouse_DOUBLE_CLICK, false);
>
> ...
>
> public function handleMouse_DOUBLE_CLICK (event:MouseEvent) :void {
> LzMouseKernel.handleMouseEvent( owner, 'ondblclick');
> event.stopPropagation();
> }
>
> Perhaps you need to do something similar? The double click events need to
> be sent as ondblclick...
>
> Regards,
> Max Carlson
> OpenLaszlo.org
>
>
> On 7/26/10 6:19 PM, Henry Minsky wrote:
>
>> approved. It works for me without an error in trunk.
>>
>>
>> Note however, in my modified version of trunk, I get this error in swf10
>> when I double click on one of my bidirectional textfield objects. The
>> mouse event is declared in the LzGlobalMouseService on 'ondblclick', not
>> 'ondoubleclick'. I'm not sure why I am getting this when clicking in my
>> custom textfield object, but not from the native textfield object.
>>
>>
>> [Fault] exception, information=ReferenceError: Error #1069: Property
>> ondoubleclick not found on LzGlobalMouseService and there is no default
>> value.
>> Fault, __mouseEvent() at LzGlobalMouseService.as:35
>> 35 var ev_$2:LzDeclaredEventClass = this[eventname_$0];
>> (fdb) bt
>> #0 this = [Object 615751577,
>>
>> class='LzGlobalMouseService'].LzGlobalMouseService/__mouseEvent(eventname_$0="ondoubleclick",
>> view_$1=[Object 621656801, class='LzInputText']) at
>> LzGlobalMouseService.as:35
>> #1 this = [Object 629047393,
>>
>> class='LzModeManagerService'].LzModeManagerService/handleMouseEvent(view_$0=[Object
>> 621656801, class='LzInputText'], eventStr_$1="ondoubleclick") at
>> LzModeManagerService.as:91
>> #2 this = [Object 629047393,
>>
>> class='LzModeManagerService'].LzModeManagerService/rawMouseEvent(eventname_$0="ondoubleclick",
>> view_$1=[Object 621656801, class='LzInputText']) at
>> LzModeManagerService.as:292
>> #3 this = [Object 617954561,
>> class='LzMouseKernel$'].LzMouseKernel$/handleMouseEvent(view_$0=[Object
>> 621656801, class='LzInputText'], eventname_$1="ondoubleclick") at
>> LzMouseKernel.as:30
>> #4 this = [Object 641462449,
>> class='LzInputTextSprite'].LzTextSprite/__ignoreMouseEvent(e=[Object
>> 610586937, class='flash.events::MouseEvent']) at LzTextSprite.as:147
>> #5 this = [Object 641462449,
>> class='LzInputTextSprite'].LzTextSprite/handleTextfieldMouse(e=[Object
>> 610586937, class='flash.events::MouseEvent']) at LzTextSprite.as:123
>> (fdb)
>>
>>
>> On Mon, Jul 26, 2010 at 8:27 PM, Max Carlson <[email protected]
>> <mailto:[email protected]>> wrote:
>>
>> Change 20100726-maxcarlson-A by maxcarl...@friendly on 2010-07-26
>> 17:15:42 PDT
>> in /Users/maxcarlson/openlaszlo/trunk-clean
>> for http://svn.openlaszlo.org/openlaszlo/trunk
>>
>> Summary: Add global mouse events for selectable text in sww9/10
>>
>> Bugs Fixed: LPP-9192 - lz.GlobalMouse events not consistent across
>> runtimes for selectable text.
>>
>> Technical Reviewer: hminsky
>> QA Reviewer: mdemmon
>>
>> Details: Send globla mouse events from __ignoreMouseEvent(),
>> currently only called for selectable text.
>>
>> Tests: See LPP-9192
>>
>> Files:
>> M WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as
>>
>> Changeset:
>> http://svn.openlaszlo.org/openlaszlo/patches/20100726-maxcarlson-A.tar
>>
>>
>>
>>
>> --
>> Henry Minsky
>> Software Architect
>> [email protected] <mailto:[email protected]>
>>
>>
>>
--
Henry Minsky
Software Architect
[email protected]