хорошо, поэтому field.as содержит класс поля, который содержит метод, который вызывает метод из другого класса (в другом файле).
field.as
...
find_path.findPath(start_node, end_node, findConnectedNodes ) // I am getting the error here
...
find_path.as имеет метод findPath.
public static function findPath(firstNode:Node, destinationNode:Node, connectedNodeFunction:Function ):Array{
....
ошибка, которую я получаю (получаю ту же ошибку дважды):
-1118: Implicit coercion of a value with static type Object to a possibly unrelated type Node.
-1118: Implicit coercion of a value with static type Object to a possibly unrelated type Node.