nibor13
02-20-2008, 03:29 PM
I created some panos with hotspots that show normal photos onClick. The photo can be closed by clicking on it.
Sometimes I get an Action Script Error:
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
at flash.display:: DisplayObjectContainer/getChildIndex()
at Hotspots/doHSOver()
It only happens if I move the pano so that the hotspot is on the upper left side of the screen. It doesn't matter whether the hotspot is behind the photo or beside it. Sometimes the error appears when I try to close the photo, sometimes when I just closed it and than touch the hotspot again. If that happens in fullscreen, pano exits fullscreen mode instead of showing the AS error. If I reduce the size of the browser window and zoom in, i.e. if the photo is bigger than the browser window, there is also the AS error on closing the photo. Here are the links:
panos: http://www.webtarget.ch/trees/tree.html
xml: http://www.webtarget.ch/trees/files/1.xml
I think it is something simple but I can't figure it out as I am not good at Action Script. I would appreciate your help very much.
Sometimes I get an Action Script Error:
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
at flash.display:: DisplayObjectContainer/getChildIndex()
at Hotspots/doHSOver()
It only happens if I move the pano so that the hotspot is on the upper left side of the screen. It doesn't matter whether the hotspot is behind the photo or beside it. Sometimes the error appears when I try to close the photo, sometimes when I just closed it and than touch the hotspot again. If that happens in fullscreen, pano exits fullscreen mode instead of showing the AS error. If I reduce the size of the browser window and zoom in, i.e. if the photo is bigger than the browser window, there is also the AS error on closing the photo. Here are the links:
panos: http://www.webtarget.ch/trees/tree.html
xml: http://www.webtarget.ch/trees/files/1.xml
I think it is something simple but I can't figure it out as I am not good at Action Script. I would appreciate your help very much.