Thanks a lot Fugee!
That did the trick for this simplified version.
Wednesday I will try to apply it to the "real" thing, a major project that as a lot more variables in it
P.S: Sorry for not using actionscript formated text. I will try to remember that next time. It's in fact much easier to read the code that way.
I'll let you know how it worked on the "big one"
Once again, thanks Fugee!