I am using Away3D4 with IN2AR augmented reality plugin, using sample code provided by IN2AR. The version of Away3D that is bundled with the IN2AR code is version 4, but earlier than 4.1.4. I cannot determine the exact version number, and I have contacted IN2AR, but had no response. I need to update Away3D to a newer version (4.1.4 or 4.1.6) in order to load in several AWD files that include lighting and animation. However, when I use one of these newer versions of Away3D, the sample code from IN2AR intermittently crashes, throwing the error following error:
‘Error: An abstract method was called! Either an instance of an abstract class was created, or an abstract method was not overridden by the subclass.’
This is located in the LensBase.as class that is being extended by IN2Ar’s Away3DCameraLens.as class.
The function that throws the error is:
public function unproject(nX:Number, nY:Number, sZ:Number, v:Vector3D = null):Vector3D
{
throw new AbstractMethodError();
}
I am wondering if there is an easy solution to correct this? I have contacted IN2AR about the error, but again, I have had no response from them.
I have attached both the LensBase.as and Away3DCameraLens.as files in a zip file, if anyone can offer advice, it would be very much appreciated.