Yes, I think that is a better approach. On 2010-05-29, at 07:31, André Bargull wrote:
> If LzMouseKernel was published in the lz-namespace, it would work. But I > don't think you want to suggest to move LzMouseKernel into the lz-namespace, > do you? > > We could do the same approach as for lz.Keys.__browserTabEvent or > lz.Keys.__allKeysUp, so add a trampoline to lz.GlobalMouse which calls > LzMouseKernel.__mouseUpOutsideHandler(). > > > On 5/29/2010 1:18 PM, P T Withington wrote: >> Question: >> >> Would it have worked to instead call: >> >> lz.MouseKernel.__mouseUpOutsideHandler >> >> and is that perhaps the more proper approach? >> >> On 2010-05-29, at 05:00, André Bargull wrote: >> >>> Change 20100529-bargull-HeY by barg...@bargull02 on 2010-05-29 10:54:19 >>> in /home/anba/src/svn/openlaszlo/trunk >>> for http://svn.openlaszlo.org/openlaszlo/trunk >>> >>> Summary: Make LzMouseKernel available from browser in non-debug >>> >>> Bugs Fixed: LPP-9052 (uncaught error in swf10 non-debug mode when resizing >>> a window and the mouse moves outside the browser window) >>> >>> Technical Reviewer: max >>> QA Reviewer: mdemmon >>> >>> Details: >>> LzUtilsClass#safeEval() uses globalValue() which uses >>> flash.utils.getDefinitionByName() to find global definitions. But >>> flash.utils.getDefinitionByName can only find global definitions which are >>> public, that means LzMouseKernel needs to be changed to a public class. >>> >>> Tests: >>> lz.embed.applications.lzapp.callMethod('LzMouseKernel.__mouseUpOutsideHandler()') >>> works for non-debug >>> >>> Files: >>> M WEB-INF/lps/lfc/kernel/swf9/LzMouseKernel.as >>> >>> Changeset: >>> http://svn.openlaszlo.org/openlaszlo/patches/20100529-bargull-HeY.tar >>> >> >>
