When I compile my code in Actionscript 3, I get a couple errors which I cannot understand:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at flash3dpano_empty_fla::MainTimeline/flash3dpano_empty_fla::frame1()
initHandler: [Event type="init" bubbles=false cancelable=false eventPhase=2]
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at MethodInfo-5()
All my source code is here (ignore the AC_RunActiveContent and virtualski.html) in Zip:
http://www.mediafire.com/?7twlohtup4i
Help me please!
AS3 Output Errors
Did you remove the panorama from the stage? If so, you need to use beta3 + clean up the object as described here: http://gardengnomesoftware.com/forum/vi ... .php?t=858
MfG, Thomas
Ok, the problem is that no "Stage" object exists and the panorama tries to access those values (for example the window size). I will need to modify a lot of code to make the panorama player "Stage" independent.
MfG, Thomas
Ok, digging more into your code I found the cause of the error. You didn't added the panorama to the main movie clip (an the stage) so even if I would make the code "stage independent" it wouldn't show up. If you just add a addChild(skiman); to your main class so that the code looks like
it would work.
Code: Select all
package com{
import flash.display.*;
import flash.net.URLRequest;
import flash.events.Event;
import com.vs.pano.pano;
public class virtualski extends MovieClip {
public function virtualski() {
var skiman:pano = new pano();
addChild(skiman);
skiman.showit();
}
}
}
it would work.
MfG, Thomas
I did not remove the panorama from the stage