how do i overwrite methods in away4.1 or 4.1.1?

Software: Away3D 4.x

J.C, Newbie
Posted: 23 June 2013 06:55 AM   Total Posts: 4

in 4.0 i can overwrite getFragmentPostLightingCode / activate etc in my sub class.
but in 4.1 / 4.1.1 these methods became to internal (arcane) scope, so what should i do now?
my target is to create my own shading method.
for example:
public class mymethod extends BasicDiffuseMethod
{
  ..... i could not overwrite any method….
}
is there any other ways?
and what is the purpose that away team to make methods to internal?

   

J.C, Newbie
Posted: 24 June 2013 07:20 AM   Total Posts: 4   [ # 1 ]

sorry this is resolved…
use arcane namespace:
and overwrite with arcane scope:

override arcane function getVertexCode():String { ... }

and it works.

and the purpose is clear:  make framework stronger and safer.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X