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 <[email protected]> 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
[email protected]

Reply via email to