AS3 Help!!


i have a promblem with my code im new to flash and it has be really confussed i dont no alot about flash but the problem is
TypeError: Error #1006: checkCollisionWithPlayer is not a function.
at Platform/onEnterFrame()
and in main it is a function as you see below:

public function checkCollisionWithPlayer(wall:MovieClip)
if (player!= null)
Collision.block(player, wall);


Did you place that code in the timeline? or is it in main class? ‘public’ only works within a package(class) and not on the timeline.