Yes. It should be myLayer and not _myLayer. BTW My solution is not water-proof.. e.g. if start to drag my layer I can't stop dragging it :( I have a bit odd feeling about the event handling in DynAPI. e.g. If I drag layer and hit Button object after that, nothing happens. Second click makes desired effect. This happens in IE 5.5, NS 4.77 won't allow me to drag layer which I mentioned. -----Original Message----- From: Michael Pemberton [mailto:[EMAIL PROTECTED]] Sent: 11. hein�kuuta 2001 14:56 To: [EMAIL PROTECTED] Subject: Re: [Dynapi-Help] RE: �Dynapi-Help� Problems with a NS layer and an event is that meant to be "_myLayer" or just "mylayer"? [EMAIL PROTECTED] wrote: > I think I just ran into this problem too. Except I use LoadPanel. ...I just > figured how to make it work: > > myLayer = new DynLayer(null,0,0,300,300); > // myLayerEventListener = new EventListener(_myLayer); // won't work > myLayerEventListener = new EventListener(); // this is ok. > .. > > Could some one explain why? > > Was this helpful? > > -Juha Heljoranta > > > -----Original Message----- > From: Kasper Schnell [mailto:[EMAIL PROTECTED]] > Sent: 11. hein�kuuta 2001 14:26 > To: [EMAIL PROTECTED] > Subject: �Dynapi-Help� Problems with a NS layer and an event > > Hello everybody. > I have a problem with layers in NS not catching an event. The layer > backgroundimage is being set in a HTML-string, which seems to be a problem > (a bug?). How can this be solved? > My code looks like this: > > myBgImage = '<img src="' + cSrc + '" align=absmiddle name="icon" height=' + > cIconS + ' width=' + cIconS + '>' > > myLayer.setHTML(myBgImage) > > It works in IE. > Cheers > Kas > > _______________________________________________ > Dynapi-Help mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/dynapi-help -- Michael Pemberton [EMAIL PROTECTED] ICQ: 12107010 _______________________________________________ Dynapi-Help mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/dynapi-help _______________________________________________ Dynapi-Help mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/dynapi-help
