466 posts
  • Has been part of the Envato Community for over 6 years
  • Elite Author: Sold more than $75,000 on Envato Market
  • Made it to the Authors' Hall of Fame
  • Had an item featured on Envato Market
+4 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.

466 posts
  • Has been part of the Envato Community for over 6 years
  • Elite Author: Sold more than $75,000 on Envato Market
  • Made it to the Authors' Hall of Fame
  • Had an item featured on Envato Market
+4 more
uiuxaesthetics
says

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

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

hasEventListener()/willTrigger()

466 posts
  • Has been part of the Envato Community for over 6 years
  • Elite Author: Sold more than $75,000 on Envato Market
  • Made it to the Authors' Hall of Fame
  • Had an item featured on Envato Market
+4 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