Skip to main content
Participant
February 15, 2009
Answered

Adding a doubleclick event on Inline Graphic Image

  • February 15, 2009
  • 3 replies
  • 1094 views
Hello all,

I'm trying to add a doubleClickEvent to an InlineGraphicElement, so that a popup window appears, and I can enter a new width and height. I'm having trouble adding a listener for the doubleClick event to an image that I'm about to add as an Inline Graphic Element. 1. Before or after I'm inserting the image with insertInlineGraphic(source,width,height), how can I add a double click event listener? 2. Once I get a doubleclick mouse event working, how again can I access the selected or doubleclicked image so I can modify width and height attributes?

Thanks so much for the help!

Justin
This topic has been closed for replies.
Correct answer rdermer
We need to expose the eventMirror property - that's a bug. I'll submit the change today. Because it has side effects I'm renaming it to getEventMirror and it will no longer be a getter.

Richard

3 replies

February 28, 2009
In my opinion, one of features more expected is, when in edit mode, the possibility of the select, resize e reposition the image. Events are also very expected.
rdermerCorrect answer
Adobe Employee
February 27, 2009
We need to expose the eventMirror property - that's a bug. I'll submit the change today. Because it has side effects I'm renaming it to getEventMirror and it will no longer be a getter.

Richard
brian_thomas2
Adobe Employee
Adobe Employee
February 27, 2009
Expect this in TLF builds 382+
Participant
February 27, 2009
Thanks for putting this on the queue. Any idea how far we're looking down the road?

Thanks,

Justin
Adobe Employee
February 16, 2009
I'm surprised the event doesn't bubble. Can you add a double click listener to the container and listen for the event there?

That said we have an open bug to expose the eventIMirror property on FlowLeafElements. That would allow you to attach a double click listener to InlineGraphicElement.eventMirror.

I think you'll want to record in your listener which ILG its listening to.
Participant
February 27, 2009
Thanks so much for the reply on this. I finally figured out what you meant. I managed to capture double clicks in the canvas but the canvas won't register events on inline graphic elements (they seem to be blocking the canvas), and in addition I can't access the eventmirror, so I can't add a listener directly to an inline graphic element. So I'm not quite sure what the best way to handle this is.

Justin