[Laszlo-dev] one more time on events for built in objects
Daniel Pool
dpool at inspiration.com
Fri Jan 20 13:32:01 PST 2006
Thanks Adam. I was beginning to suspect it was something in one of
the Java files but I didn't know where to look. Hopefully I can plug
away at this a little more and understand it better.
Daniel.
On Jan 20, 2006, at 12:02 PM, Adam Wolff wrote:
> On Jan 20, Daniel Pool wrote:
>
>> I think my previous question was not clear so I am trying again.
>>
>> I want to understand how events come in to an openlaszlo application
>> from the flash player. I understand that this is specific to a single
>> runtime, but we will be targeting an swf, at least initially. So for
>> instance where does an onclick event come in from. And where is that
>> event registered with an LzView. I have looked at
>> LzView.setClickable
>> but that doesn't really answer my question. I can't find where the
>> event
>> is registered or sent.
>
> This is pretty tricky actually. There's a special resource
> available to
> LzViews that gets defined in SWFFile.java.
> // 6. A movieclip with the export identifier "LzMouseEvents" that
> // has a 100x100 ...
>
> THis gets attached to view which is clickable in LzView.setClickable
>
> LzView.prototype.__LZclickregion = "LzMouseEvents";
> //..later
> LzView.prototype.setClickable = function ( amclickable ){
> if ( amclickable != false && !this.__LZbuttonRef){
> this.__LZmovieClipRef.attachMovie
> (this.__LZclickregion , ...
>
>
> Hope this helps.
>
> A
>
>
>
>>
>> I have already seen at least one bug ( LPP-434) that is going to be
>> problematic for our application and given my experience with other
>> development
>> environments I expect I will find more. I really want to be able
>> to understand
>> and address these issues so I need to understand the code. I have
>> searched the
>> code, searched the web, and searched the mail list but I am just
>> not getting
>> it.
>>
>> I think I am close with this, then I get to move on to understanding
>> persistence.
>>
>> As always any input is appreciated.
>>
>> Thanks,
>> Daniel.
>> _______________________________________________
>> Laszlo-dev mailing list
>> Laszlo-dev at openlaszlo.org
>> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
More information about the Laszlo-dev
mailing list