How to make a Lag-free platform game?

Hi guys
I am currently using this tutorial:

I use multiple blocks, therefore every frame I scan to check every platform to see if their hitTest is positive. It becomes very laggy.
Is there a more lag-free way to make a platformer game in AS2?
Thanks