465 posts
  • Bought between 100 and 499 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 1 and 9 users
  • Sold between 100 000 and 250 000 dollars
  • United States
CurtyCurt 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
  • Bought between 100 and 499 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 1 and 9 users
  • Sold between 100 000 and 250 000 dollars
  • United States
CurtyCurt says

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

1988 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Author had a File in an Envato Bundle
  • Has been a member for 4-5 years
  • Author had a Free File of the Month
  • Won a Competition
  • Bought between 10 and 49 items
+4 more
bitfade says

hasEventListener()/willTrigger()

465 posts
  • Bought between 100 and 499 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 1 and 9 users
  • Sold between 100 000 and 250 000 dollars
  • United States
CurtyCurt 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