I have a swf generated by Captivate loaded in Flash. When I unload the Flash movie, using the simple:
I see a barrage of errors coming from the Captivate SWF. This error repeats over and over:
TypeError: Error #1009: Cannot access a property or method of a null object reference. at captivate.veela_as3::rdSwfLoader/IsParentSlidelet() at captivate.veela_as3::rdItem/getParentCurrFrame() at captivate.veela_as3::rdSwfLoader/getParentCurrFrame() at captivate.veela_as3::rdSwfLoader/rdSwfLoaderEnterFrame()
Now I would love to use unloadAndStop() or if that didn't work, uncaughtErrorEvents, but unfortunately this project requires Flash player 9.
Any ideas on how to prevent this error?
Well my solution for the moment is simply to comment out the line:
and instead just removeChild(loader) and set loader to null. For some reason the Captivate swf spits the dummy if it doesn't have a parent.
What a baby.