465 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 100+ items on Envato Market
+5 more
uiuxaesthetics says

Anyone know how to check for the existence of an event listener. I can set a boolean if I have to, but there has to be some way to check to see if the listener is added or not.

465 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 100+ items on Envato Market
+5 more
uiuxaesthetics says

never mind think i found my answer if(object.hasEventListener(MouseEvent.MOUSE_DOWN)) {}

2010 posts
  • Has referred 50+ members
  • Has sold $500,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+9 more
bitfade says

hasEventListener()/willTrigger()

465 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 100+ items on Envato Market
+5 more
uiuxaesthetics says

yup, shoulda checked livedocs

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/events/EventDispatcher.html

think im gonna use willTrigger

by
by
by
by
by
by