From: Leif W <war...@us...> - 2005-08-11 01:17:10
|
> From: "Leif W" <war...@us...> > Sent: 2005 August 10 Wednesday 13:12 > >> From: "Bob Jamison" <bob...@gr...> >> Sent: 2005 August 09 Tuesday 19:09 > >> I have a child layer, in which I want to be able to click and get the >> x and y values of where I clicked -- so far, it's getting the x and y >> value relative to the page, not the layer. I'm using 3.0. I've made a simple example, which looks very much likes Doug's, so I just merged the differences. It seems to work ok for me. DynAPI: 3.0.0-beta2 Browsers: Mozilla Firefox 1.0.6, Internet Explorer 6 OS WinXP SP2 > Hmm, what looks odd to me are these... > > var photo = dynapi.document.addChild( new > DynLayer(null,0,0,600,400) ); > var bg1 = photo.addChild(new DynLayer(null,0,0,600,400)); > var lyr1 = photo.addChild(new DynLayer(null,$x,$y,10,10,'red')); Well, I'll be... hmm, I don't remember using that syntax before, but it works as I expect, so nevermind my comments. Leif |