PDA

View Full Version : unload error


gunsoftommy
05-08-2008, 01:59 PM
I'm new to AS3 and flash panoramas. while trying to uload an embedded pano, i get this repeating error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at CubePanorama/redraw()
at autorotator_fla::MainTimeline/doMoveStep()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()

I'm using a button to unload the pano with this script:

function pageclose(evt:MouseEvent):void {
panorama.pano.remove ();
}
closebtn.addEventListener(MouseEvent.CLICK, pageclose);

My pano uses the movDecoder, limits, & autorotator plugin. Do these need to be unloaded as well?

cheathamlane
05-08-2008, 03:08 PM
There have been several threads regarding this -- I'm not sure if any one of them has a 100% certain solution... This one (see post #8 in particular) has much info:
http://flashpanoramas.com/forum/showthread.php?t=1089&highlight=unload

zleifr
05-08-2008, 03:30 PM
like Patrick Cheatham said.

Zepyr

gunsoftommy
05-08-2008, 03:40 PM
ah, i see... i wasn't sure if my problem was related.
awesome! now i'm in the middle of this issue. i'll keep all updated on any progress.