Cut a long story short – took me a long time to find a solution to support Flash MouseWheel on all browsers, Windows AND Mac. You can see this live here: http://www.pairhaps.com This solution is a combination of two technics, and as of today (March...
Category: scripting
Injecting and calling JS functions from within flash using external
I recently encountered a unique requirement in one of my projects, triggering the loading of a page in the background (outside of flash, using Ajax) from within flash. Often you cannot rely on JS functions to be available, you could load public libraries (Jquery or...
Random number without repeat as3
We’re using the random object for many things, by its nature it may repeat a number, but sometimes we don’t want to get the same number more than once, for example when showing a random image out of an array of images, or jumping to...
Html5, Flash and Beer bottles
Have you seen the cool things Google are doing with Html5 recently? Okay, I am not trying to defend Flash in any way, but Html5 development will soon hit the same bottle-necks the Flash player did, as it uses the browser’s Javascript engine. Evidence: check...
Tips on connecting blogs to Facebook
I just finished connecting my blog and few other pages on my site to Facebook, to enjoy some sharing goodness of the social community, as well as Facebook’s ‘insight’ statistics – why not enjoy what is given for free right? I had some setbacks and...
How to stroke several sprites as one
If you’re trying to create a single stroke (outline, contour) over several sprites or movieClips, you can simply create a parent object to hold them and apply a glow filter to it. In this example (yeah, it’s an old and basic as2 thing, a test...
window.onblur – strange behavior on browsers
About a year ago I posted an example for using externalInterface to start and stop sound inside flash, based on focus and blur events in the window. After recently receiving several comments and questions about strange behavior on different browsers, I decided to test the...