You can look in the class itself to discover this. . .
Go into the constructor for the class (in this case, it is
away3d.materials.WireframeMaterial.WireframeMaterial(...)), and look
for a line something like this:
ini = Init.parse(init);
Init.parse() is a command that returns an Object which is
(essentially) a list of parameters. In this case, you will also see
the line:
width = ini.getNumber("width", 1, {min:0});
which actually assigns the width. This method of passing parameters
is pretty standard throughout Away3D; note that what you are passing
to the class constructor is actually an object - thus the curly
brackets (e.g., {stuff=other}) - but it might be easier to think of
them as special parameters until you get the hang of it.
On Jan 20, 2:10 pm, "Joshua Granick" <[email protected]> wrote:
> Ah, I didn't know that!
>
> So is this just a property of the Cube object, or can you use this on other
> types of meshes?
>
> On Wed, 20 Jan 2010 12:04:48 -0800, Peter Kapelyan <[email protected]>
> wrote:
> >http://away3d.com/examples.php?example=37&viewhtml=1
>
> > the last line of code
>
> > :)
>
> > -Pete