Implicit coercion of a value .. - AS3 OOP?

You might not have declared the type of start_node and end_node.

You might not have declared the type of start_node and end_node. Declare those variables as private / public / protected var start_node:Node, end_node:Node; Alternatively, call the function as find_path. FindPath(start_node as Node, end_node as Node, findConnectedNodes ).

Ok, thanks mate. The second method worked. However, I am not sure why you have to do this, can you please explain?

Thanks @Pranav Hosangadi – dgamma3 Nov 9 '11 at 23:24 @dgamma3 you need to do this to explicitly cast start_node and end_node which you defined as Objects to the Node type. This tells the compiler that the argument you are supplying is definitely of the class Node. It would have been better to declare the variables to be of the class Node to take advantage of the strongly typed nature of Flash – Pranav Hosangadi Nov 10 '11 at 11:31.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions