You can use the drawing API (ie. graphics.lineStyle(), g.lineTo(), etc...)
and "draw" your line on a component layer (UIComponent for instance).  Then
just add event listeners to the component instance for click, mousedown,
etc...  There's plenty of documentation for the drawing API methods, and
their usage.  The only thing that shows in an empty UIComponent instance is
the stuff you draw, so once you add to a Canvas or something, the drawn
portions will receive the interaction (ie. your line)

Brendan



On Thu, Mar 19, 2009 at 4:18 PM, denkzeug_de <[email protected]> wrote:

>   Hi all,
>
> I'm currently working on a swimlane (activity) diagram tool, and I'm
> looking for a way to make the lines that connect the items clickable.
>
> So far, everything I could come up as ideas seemed to be dirty hacks or at
> least complicated workarounds.
>
> Is there any tested and reliable way to draw lines that would be clickable
> and selectable (for example to delete them or rearrange them). Perhaps I'm
> missing something very obvious??
>
> Thanks for any input, best regards,
> Christoph
>
>  
>



-- 
Brendan Meutzner
http://www.meutzner.com/blog/
http://www.riajobs.com

Reply via email to