Bring a shape to the top

2 views
Skip to first unread message

Irati

unread,
Dec 21, 2009, 3:29:46 AM12/21/09
to Degrafa
Hi! I'm using degrafa to do a project and I would like to show a kind
of pop-up when I click in a shape (something like autodesk dragonfly
does when you click a door in 2D: http://dragonfly.autodesk.com/designer).
I made that pop-up using a canvas because it includes images and text.

I am able to add new shapes each time, and I have just one pop-up
instance. The problem is that if I add a new rectangle, the pop-up is
already created and the rectangle appears on the top of it. Do you
know any way to bring the pop-up to the top?

pedro.varela

unread,
Dec 21, 2009, 7:24:19 PM12/21/09
to Degrafa
use addChildAt( lastIndex of all childrens in the display list)
Reply all
Reply to author
Forward
0 new messages