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: action script
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...
Profyler – profile image creation app
Many people are having troubles resizing and processing pictures into a profile image (say for Facebook?), there are countless free utilities and apps out there (most of them look pretty shitty..), and also several online services, and now there is another one – mine :)...
Pure code AS3 spinning loading animation
While working on the video player, I wanted to show spinning loading animation while buffering, and since I decided that the whole thing will be pure code, with no library assets, I had to code this animation – just the kind of things I like....
The ultimate video player – as3
There are many video players in flash out there, lots of them are open too, I’ve found few tutorials out there giving everything you need to know to code a video player. few of them work really nice and heavily distributed (JW Player), others have...
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...
Glossy buttons in pure as3 code
I’ve been playing with the drawing classes, experimenting gradients and blending modes, and so I put together a small (basic) as3 class that generates a glossy button with pure code – no library assets. You can download the class here. The class constructor expects only...
ResizeManager – simple scaling engine for MovieClips
Flash objects (SWF) can fill the entire Html body, and scale along with browser window as you resize it (it’s done by setting width and height attributes to 100% in the embed tags). However unless scaleMode is properly defined as well, the outcome may look...