[Laszlo-dev] how to determine the objects with given position attributes
Henry Minsky
hminsky at laszlosystems.com
Thu Jul 16 18:14:17 PDT 2009
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20090716/0b900366/attachment.html
More information about the Laszlo-dev
mailing list