Cheers, that’s great. But is it really necessary to get as complicated as that? It’s just that the whole thing works but it fades EVERYTHING out rather than just the graphic I want to fade out.
If I write it like this:
on (release) {
fader = setInterval(function {_root.fadeThis._alpha -= 5;},10);
}
It works perfectly. But I don’t want to do it like this, I want to use a functino that can have an image name passed to it. It just feels like I’m calling the image in the function wrong or something.
IMO it’s better to use an onEnterFrame handler. With setInterval there’s the whole hassle with the scopes and the interval clearing and whatnot, an onEnterFrame handler is so much easier to use.