Hello,
I am trying to dynamically load several KRPanos into a large AS3 project (only one open at a time, of course), and thus far have been able to make a URL request and load the embedded player via a URL loader and addChild. This works fine. However, I have spent hours trying to figure out to make it go away when I want to close it.
've tried to use "removeChild" for the embedded player, looked around in the KRPano documentation for actions to do this, etc. Can it be done?
Here's a basic structure of my project:
- Main.fla:
loads lots of stuff, creates user interface, etc. Contains a button to load KRpanos, which will then make a URL request and addchild to the embedded KRPano swf.
-- KRPano swf: loads a KRPano xml and works fine, has buttons, but I can't figure out how to close it.
Thanks in advance.