Hey there, this is my first dynapi script so I could be doing very something
entirely wrong...the problem is that I have a DynLayer that should make its
parent slideTo() certain coordinates when the child layer is clicked. Here's
the important code (from the onprecreate() of the parent):
o.setBack = new DynLayer(null,o.w-15,o.h-5,10,3,"#000000");
o.setBack.listener = new EventListener();
o.setBack.listener.onclick = function(e){
var layer = e.getSource();
layer.parent.animateMe();
};
o.setBack.addEventListener(o.setBack.listener);
o.addChild(o.setBack);
This works perfectly on IE 5, but on NS 4/6 it gives multiple errors about
parent not having any properties, but then proceeds to slideTo the parent
correctly (but really slow in NS6). The html is at
http://anarchos.xs.mw/dhtml/anarmenu.phtml you can view the source at
http://anarchos.xs.mw/source.phtml?page_url=/dhtml/anarmenu.js
Thanks a bunch,
Anarchos
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help