PDA

View Full Version : Preloading papervision



Joe Pasek
April 25th, 2008, 06:01 PM
Hello,

I'm currently attempting to load a compiled swf that is papervision into another swf via a loader. However, when I do so, I receive that awesome error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.

I am aware that it is trying to load something that isn't initiated and that's why it is throwing me this error.

What I don't know is how to fix it. Is there a better method for preloading a papervision app?

Thanks in advance!

magcius
April 25th, 2008, 07:48 PM
That's a very generic error. It would help to have a little context, like the block of code surrounding the error. Basically, you're doing this:



var foo:MovieClip = null;
foo.gotoAndPlay ( 2 );


The problem is foo is null, so it can't gotoAndPlay! What is it supposed to do? That's the problem, something is null, and you want to get things inside of it!