We have reduced support for legacy browsers.

What does this mean for me? You will always be able to play your favorite games on Kongregate. However, certain site features may suddenly stop working and leave you with a severely degraded experience.

What should I do? We strongly urge all our users to upgrade to modern browsers for a better experience and improved security.

Kongregate is a community-driven browser games portal with an open platform for all web games.
Get your games in front of thousands of users while monetizing through ads and virtual goods.
Learn more »

What’s the motivation behind your request?
What are you trying to do?
You can add it in the class of your buttons.
That’d still add it to every object, but the adding is happening in “one place” code wise.
You can add the listener to the document class and let the Events bubble up.
This however does not necessarily give you access to the button object via .target, if it has mouseChildren.

> *Originally posted by **[Aesica](/forums/4/topics/313463?page=1#posts-6613028):***
>
> So you want to check for an event without using an event listener? Perhaps witchcraft is what you’re looking for.
Thanks for helping…
> *Originally posted by **[NineFiveThree](/forums/4/topics/313463?page=1#posts-6613064):***
>
> What’s the motivation behind your request?
> What are you trying to do?
>
> You can add it in the class of your buttons.
> That’d still add it to every object, but the adding is happening in “one place” code wise.
>
> You can add the listener to the document class and let the Events bubble up.
> This however does not necessarily give you access to the button object via .target, if it has mouseChildren.
I want to add a glow filter to my cursor when it is hovering over a SimpleButton clip, the .target property is not needed.
What could be possible is to overwrite the mouseover function of the SimpleButton class to tell when I have hovered the mouse over a button. What would you say about that 953?

Isn’t this the realm of the built-in native cursor replacement API?
[http://help.adobe.com/en\_US/FlashPlatform/reference/actionscript/3/flash/ui/Mouse.html](http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/ui/Mouse.html)

I actually wrote a short tutorial on how to use the custom cursor API back when I actually thought spending time to maintain a blog was a good idea. (I know, crazy right?)
Anyway, [here’s](http://bobthecoolguy.wordpress.com/2011/02/10/custom-cursors-demo-in-fp-10-2/) the link, maybe it will help, maybe not.

> *Originally posted by **[Aesica](/forums/4/topics/313463?page=1#posts-6613028):***
>
> So you want to check for an event without using an event listener? Perhaps witchcraft is what you’re looking for.
Not too long ago, I read a blog post of an AS3 coder who said that whenever he sees events in anybody’s code, he immediately replaces them with callback functions. I haven’t seriously looked into the performance of events versus callbacks, but it’s something that I’ve been meaning to check out someday.
> *Originally posted by **[BobTheCoolGuy](/forums/4/topics/313463?page=1#posts-6613958):***
>
> I actually wrote a short tutorial on how to use the custom cursor API back when I actually thought spending time to maintain a blog was a good idea. (I know, crazy right?)
(Elyzius hides his blog under a rug.)
> Anyway, [here’s](http://bobthecoolguy.wordpress.com/2011/02/10/custom-cursors-demo-in-fp-10-2/) the link, maybe it will help, maybe not.
Uh, Bob, I don’t think Chrome likes SWFCabin at all.
![](http://i396.photobucket.com/albums/pp45/Elyzius/BobsBlog.jpg)

Elyzius: Oh my. That’s quite the surprise. Well, my apologies if somehow it contains malware, although I highly doubt it does. Coincidentally, [URLVoid](http://urlvoid.com/scan/bobthecoolguy.wordpress.com/) show’s it’s clean. That being said, don’t take any risks on the internet.

Well, Bob’s a cool guy. I’m sure all his SWFs are safe. The same cannot be said for some of the SWFs that have been uploaded to SWFCabin. One can code malware with Actionscript, and apparently some people have. Any repository of SWFs can potentially harbor malware. One can only hope that the people who upload their files to FastSWF have nothing but good intentions. Hopefully, user registration and a login screen can be implemented in FastSWF soon so that if anyone uploads malware, you’ll know who’s the guilty party.

> *Originally posted by **[Elyzius](/forums/4/topics/313463?page=1#posts-6615423):***
>
> Not too long ago, I read a blog post of an AS3 coder who said that whenever he sees events in anybody’s code, he immediately replaces them with callback functions. I haven’t seriously looked into the performance of events versus callbacks, but it’s something that I’ve been meaning to check out someday.
Do you still have the link? I find the event system clunky, but I’ve never found a way to bypass it that didn’t also involve breaking encapsulation. I’d be very curious to see how this guy went about it.

I can’t find the guy’s blog for the life of me. I never bothered to bookmark it because the author struck me as rather peculiar. Aside from replacing events with callbacks when changing someone else’s code, he also said that he deletes all comments until none are left. Surely comments have no effect on SWF performance, right?
Nevertheless, the idea of replacing events with callbacks did not seem to originate from him. The genius behind this idea is apparently Robert Penner, whom I am absolutely certain is not the same man who slaughters innocent comments without mercy. If you want to read about Signals, Penner’s alternative to AS3 events, [click here](http://flashblog.robertpenner.com/2009/09/my-new-as3-event-system-signals.html).
For further reading, you may want to click [this](http://pierrechamberlain.ca/blog/2010/03/flash-callbacks/), [this](http://alecmce.com/as3/replacing-enter_frame), and [this](http://www.ghost23.de/2010/10/events-vs-callbacks-when-to-use-which/).

Thank you very much, the first ‘this’ link actually explained it really well. As for scrubbing all comments on sight… well, I’m no friend of comments myself (I am of the opinion that proper code should be self-evident and that finding a good variable/function name is a better use of one’s time than writing a comment to justify or explain a bad name) but I still find that attitude extreme.