How do hitTest against other classes

1 post

Flag Post

I have 2 objects my player thats linked to my player class and a blue platform thats linked to my floor class and thats in my floors array(static var).
So i tried to access it with this:
for (var i:Number = 0; i < Main.floors.length; i++) { if (Main.floors[i].hitTestObject(this)) { grav = 0 } }
and nothing happened.
whats wronng with my code.

Or should test if the my player hits the floor class at all?(i already tried it but if works for you then i would love to know how you do it :/ )