-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
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");"
2 | No.2 Revision |
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");"
3 | No.3 Revision |
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");"