[Laszlo-dev] LPP 6980, context menus in swf9 and high CPU usage

Henry Minsky henry.minsky at gmail.com
Sun Apr 26 12:34:20 PDT 2009


Oh that's a good idea, you mean keep the ContextMenu on each sprite, but
just copy over it's stateto the displayed menu on demand...



On Sun, Apr 26, 2009 at 3:21 PM, André Bargull <andre.bargull at udo.edu>wrote:

> Ok, just one note.
>
> From your JIRA comment:
>
>> That looks like a good workaround. So we will need to modify the context
>> menu implementation for swf9 to keep a list
>> of the context menu items for each view, so they can be swapped in on
>> demand. I guess we'll have to also keep track of whether the
>> hideBuiltInItems API call was made for a given view.
>>
>
> You can just copy over the ContextMenu#builtInItems and
> ContextMenu#customItems arrays over to the actual displayed ContextMenu
> instance. That way you can re-use many things of the current implementation.
>
>
> - André
>
>
>
> On 4/26/2009 9:09 PM, Henry Minsky wrote:
>
>>
>> Hi Andre,
>>
>> I'm going to work on a fix for the context menu issue using your
>> suggestion of swapping in menu items on a top level menu, working in the 4.2
>> branch.
>>
>> When I get that done I'll migrate to trunk.
>>
>> --
>> Henry Minsky
>> Software Architect
>> hminsky at laszlosystems.com <mailto:hminsky at laszlosystems.com>
>>
>>
>>


-- 
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20090426/3814494d/attachment.html


More information about the Laszlo-dev mailing list