From: Glen D. <gle...@gt...> - 2003-02-13 01:02:57
|
I don't know if this is what you are looking for, but here it comes. COLHevents=new EventListener(COLH) COLHevents.ondragmove=function(e) { COLB.moveTo(COLH.x, COLH.y-1) COL.moveTo(COLH.x, COLH.y) } COLH.addEventListener(COLHevents) An old example using dynapi 2.53 is here: (Warning, adult cartoons) http://home1.gte.net/glendeas/dynapi253/tsusaka/set0.html The code is here: http://home1.gte.net/glendeas/dynapi253/tsusaka/set0.js ----- Original Message ----- From: "Jesse Vitrone" <je...@6t...> To: <dyn...@li...> Sent: Wednesday, February 12, 2003 12:51 PM Subject: [Dynapi-Help] how far did the layer move? > I have a 2 layers, and when one moves, I want the other one to move, so > they move as a group. > Shouldn't be hard to do, but I don't know how to tell how far the first > layer has moved, that way > my move callback can move the other one by the same distance. > > > Is there something that I can look at when I'm in the ondragmove > listener to see how far it's moved? > > Thanks in advance, > Jesse > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help |