[Papervision3D] Cannot access a property or method of a null object reference. Clone
John Brookes
jbpv3d at googlemail.com
Thu Sep 25 09:00:44 PDT 2008
http://www.shrewballooba.co.uk/CFC-a08/cfc.jpg
Im using clone() to make a clone of the big pig to create the piglet which
works fine except that I get artifacts/jagged objects (what's the term for
that?).
The big pig has useOwnContainer = true on the eyes snout ears etc to stop
that happening. How can I set it for the piglet?
function cloneCreature():void {
var piglet:DisplayObject3D = creatureContainer.clone();
scene.addChild(piglet);
piglet.scale = .65;
trace(piglet.childrenList()); // shows the snout as snout_0
snout_0.useOwnContainer = true;
}
I've tried "snout_0.useOwnContainer = true;" but I get the error "Cannot
access a property or method of a null object reference."
I'm guessing that means its not ready/on the scene yet? What does it
actually mean?
How do you do something like this in AS3
php
if( isset(object)) {
...
}
and is that even an answer to the problem?
Also RenderStats
I assume
FPS = Frames per second.
mem = memmory
tri = triangles
lin = lines
what are the others?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20080925/3bc742aa/attachment.html
More information about the Papervision3D
mailing list