----- 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