Remove Pano in AS3

Q&A about the latest versions
Post Reply
hgsch
Posts: 2
Joined: Thu Dec 20, 2007 10:45 am

Hi, adding pano.swf with addChild() works fine, but how can i remove a pano.swf? (AS3)

removeChild () shows me this error:

TypeError: Error #1009: Der Zugriff auf eine Eigenschaft oder eine Methode eines null-Objektverweises ist nicht möglich.
at PanoCube/doEnterFrame()
User avatar
thomas
Chief Gnome
Posts: 2613
Joined: Fri Sep 01, 2006 3:56 pm
Location: Vienna, Austria
Contact:

Yeah, it is stupid that ActionScript doesn't has a destructor so you need to call

Code: Select all

vr.pano.cleanup();
before you remove the child from the stage to avoid this error. I included this information into the http://gardengnomesoftware.com/wiki/Pano2VR_-_Flash_API page
MfG, Thomas
Post Reply