nice idea..but :-)
Don't think about a simple dynlayer.. but a widget (containing child layers,
content, colors, eventlisteners, extension..etc)
Ofcourse it's possible to duplicate that one, but it becomes already a bit
harder.. Next problem is the dragging mouse event has to be triggerd on the
other frame and cancelled in the old one. Other events are also triggered
(document events other layer-events) These have to be dealed with because
they should not be triggered seeing that the mouse-event wasn't REALY
finished (although the browser frame thought it was)
just some thoughts on this subject..
Pascal Bestebroer
[EMAIL PROTECTED]
http://www.dynamic-core.net
> -----Oorspronkelijk bericht-----
> Van: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]Namens Doug Melvin
> Verzonden: maandag 29 januari 2001 21:52
> Aan: [EMAIL PROTECTED]
> Onderwerp: Re: [Dynapi-Help] Help
>
>
>
>
> > Nope, cannot. Layers simply exist in the frame they were made in and
> that's
> > it. I would be amused to see one of these coding gods come up with a
> > simulation of dragging between frames by actually using a
> duplicate of the
> > layer being dragged in the target frame, but I could not imagine it
> working
> > well.
>
> And why not? Don't we have cloning functionality?
>
> You set a var
> var DragLayer;
> var dragframe;
>
> if you are dragging a layer in frame1 then
> draglayer=myLayer
> dragframe=1
>
> and in frame2
> .ondragmove...
> {
> ...
> if (Draglayer && dragframe <> 2){
> do the cloning here, set draglayer to be the new (cloned)layer nad
> dragframe to be 2
> }
> ...
> }
> >
> > M.
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Michael
> > Towers
> > Sent: Monday, January 29, 2001 9:00 AM
> > To: [EMAIL PROTECTED]
> > Subject: [Dynapi-Help] Help
> >
> >
> > Can anyone tell me if it's possible to drag layers between frames? and
> some
> > example code would be helpful.
> >
> > Thanks
> >
> > Mike Towers
> >
> > _______________________________________________
> > 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
>
>
> _______________________________________________
> 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