PDA

View Full Version : Action Script Error #2025


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.

zleifr
02-20-2008, 05:55 PM
That smells like a bug to me. A stink bug to be precise.

Send that one along to Monsier Denis Chumakov

Zephyr

nibor13
02-21-2008, 02:58 PM
Zephyr, thank you for your answer.
I sent Denis an e-mail and as soon as I get his reply I will inform you.

Regards
Robin

nibor13
02-27-2008, 08:38 AM
Thanks to Denis the bug is gone!
Here is his answer, perhaps this might help somebody else too:

I can't imagine how this is possible (very strange bug) :)
But this is an updated version of Hotspots with additional protection from this bug. I belive it will help.

cheathamlane
02-27-2008, 02:59 PM
Thanks to Denis the bug is gone!
Here is his answer, perhaps this might help somebody else too:

Hmm... When I drop that file in as a replacement, I get a few errors -- and not all the hotspots load (specifically, a SWF mp3 player).

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at AttributesBox/loadSpot()
at AttributesSpot/set url()
at AttributesBox/init()
at Hotspots/addSpot()
at Hotspots/parseHotspots()
at Hotspots/waitForParameters()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()

nibor13
02-27-2008, 06:16 PM
I dont know why you get these errors, I'm sorry.
To my pano I added now some sound with Denis' mp3player.swf and had no problems. But my pano is very simple, I only use standard scripting and plugins. I tested the link below with FF and IE on a PC. Haven't seen it on a Mac yet.

pano: http://www.webtarget.ch/trees_sound/trees.html
xml: http://www.webtarget.ch/trees_sound/files/1.xml

lekiend
10-14-2008, 01:31 PM
Hello,
I have exactly the same problem.
Did you solve your problem and how ?

Regards
Dimitri

VRego
02-13-2009, 03:42 PM
I also get this error :(

I'll test with the "new" hotspot plugin in these thread and post back.

Rego

VRego
02-13-2009, 03:56 PM
The hotspot provided in these thread doesn't solve my problem, and worst, it brings other errors:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at AttributesBox/loadSpot()
at AttributesSpot/set url()
at AttributesBox/init()
at Hotspots/addSpot()
at Hotspots/parseHotspots()
at Hotspots/waitForParameters()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()

with it, it just won't load any hotspot, soooooo, back to the original error, and origanal hotspot.swf:

Error #2025: The supplied DisplayObject must be a child of the caller.
at flash.display:: DisplayObjectContainer/getChildIndex()
at Hotspots/doHSOver()


Anyone.... Denis ....