[Laszlo-dev] how to determine the objects with given position attributes

P T Withington ptw at pobox.com
Thu Jul 16 19:18:50 PDT 2009


Would

http://www.openlaszlo.org/lps4.4/docs/reference/lz.TrackService.html

be of any help?

On 2009-07-16, at 21:14EDT, Henry Minsky wrote:

> I don't believe there is a library API call which tells you a list of
> objects whose bounding
> box covers a given point.
>
>
> So perhaps the simplest thing would be to iterate over a list of all  
> your
> playing pieces, and compare the bounds for each one.
>
> On Thu, Jul 16, 2009 at 8:17 PM, cem sonmez <cemosonmez at gmail.com>  
> wrote:
>
>> Hi, i want to develop a  simple backgammon game in laszlo and need  
>> some
>> help .
>> I have 3 files called pul.lzx, table.lzx and application.lzx for now
>>
>> application.lzx -> is the main file which includes one of pul and  
>> table
>> class objects. Application file that has <canvas>
>>
>> table.lzx -> another class that has it's own attributes and  
>> methods. Also
>> some "pul" objects is being created in this file.
>>
>> pul.lzx (playing pieces's class definition)->
>>
>> There is just one "table" object created in the application. And i  
>> create
>> "pul" objects in "table" class's definition.
>>
>> So after dragging the "pul (playing piece)" object and when  
>> onmouseup event
>> sent, I want to know if another "pul" object exists at this  
>> location. I have
>> the bounds of "pul" objects and need a method which returns the  
>> objects via
>> using given bounds. Or has anyone can help me how to do this in  
>> another way.
>>
>>
>> Any idea? waiting for your replies.
>>
>> Best Regards
>>
>> --
>> Cem SONMEZ
>>
>
>
>
> -- 
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com



More information about the Laszlo-dev mailing list