Well alrighty then.
I will make some samples.
I can't use the existing ones here as my contract says so.
I can't make any promises as to when tho - we are busy
as hell right now.
 
 
----- Original Message -----
Sent: Thursday, November 01, 2001 3:09 PM
Subject: Re: [Dynapi-Dev] enableDragevents across frames

 
----- Original Message -----
 
 
>>FUCK!
 
>>How may time do we need to go throught this?
 
:o) Nice to see you're still your own fiery self.
 
Do you have some DynAPI/frames testfiles laying around? That would make testing easier, and there are not many frames examples available.
I never use frames myself, and the only examples I have is this:
 
 
 
Now, a CORRECTED function:
DragEvent.enableDragEvents=function() {
 var DocAdded=false;
 for (var i=0;i<arguments.length;i++) {
  var lyr=arguments[i];
  if(lyr){
   if(lyr.isDynLayer){
    lyr.addEventListener(DragEvent.lyrListener);
   }else if(lyr.isDynDocument){
    lyr.addEventListener(DragEvent.docListener);
    DocAdded=true;
   }
  }
 }
 if (!DocAdded)DynAPI.document.addEventListener(DragEvent.docListener);
};
 
I was wondering, if we add 100 layers to the frame, and make them dragable one by one, would we also be adding 100 eventlisteners to that dyndocument?
Richard.
 
 

Reply via email to