Revision history [back]

click to hide/show revision 1
initial version

answered 2014-03-11 13:28:11 +0800

IngoB gravatar image IngoB flag of Germany

At the moment I'm only assigning the dynamically created popup to the image.

Image image = new Image();
Popup popup = new Popup();
image.setTooltip(popup);

Thats all and its working. But if i use, as you suggested, "popup.open" then I'll have to set 2x Listeners or am I missing something?

Image image = new Image();
Popup popup = new Popup();
popup.addEventListener(Events.ON_MOUSE_OUT, myPopupOpenListener);
popup.addEventListener(Events.ON_MOUSE_OVER, myPopupOpenListener);

...

myPopupOpenListener -> "popup.open(image, "after_pointer");"

At the moment I'm only assigning the dynamically created popup to the image.

Image image = new Image();
Popup popup = new Popup();
image.setTooltip(popup);

Thats all and its working. But if i use, as you suggested, "popup.open" then I'll have to set 2x Listeners a EventListener or am I missing something?

Image image = new Image();
Popup popup = new Popup();
popup.addEventListener(Events.ON_MOUSE_OUT, myPopupOpenListener);
popup.addEventListener(Events.ON_MOUSE_OVER, myPopupOpenListener);

...

myPopupOpenListener -> "popup.open(image, "after_pointer");"

At the moment I'm only assigning the dynamically created popup to the image.

Image image = new Image();
Popup popup = new Popup();
image.setTooltip(popup);

Thats all and its working. But if i use, as you suggested, "popup.open" then I'll have to set a EventListener or am I missing something?

Image image = new Image();
Popup popup = new Popup();
popup.addEventListener(Events.ON_MOUSE_OVER, image.addEventListener(Events.ON_MOUSE_OVER, myPopupOpenListener);

...

myPopupOpenListener -> "popup.open(image, "after_pointer");"
Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More