Returning an INT

Hi guys, I’m getting an error and I have no idea why. Below is the code thats causing the problem.

‘player1’ is the instanced class and ‘hero’ is an instanced symbol within the class.

This is the error message:
[COLOR=“Red”]1067: Implicit coercion of a value of type Function to an unrelated type int.[/COLOR]

This function is within a class.

[COLOR="blue"]public function[/COLOR] get_R():[COLOR="blue"]int[/COLOR]{
	[COLOR="blue"]return[/COLOR] hero.[COLOR="blue"]rotation[/COLOR];
}

This code is on my frame in the .fla file.

[COLOR="Blue"]if[/COLOR](player1.get_R == 0){
	......
}

Any help would be really appreciated. Thanks.