Can you tell me if the following is correct?

function AGVisComp(oOwner, sType, bIsLayer, id, x, y, w, h) {
  if (bIsLayer) {
    this.DynLayer=DynLayer;
    this.DynLayer(id,x||0,y||0,w||128,h||18);
  }
  else {
    this.Object = Object;
    this.Object();
  }

  // Propeties
  this.type = sType || 'label';
  this.owner = oOwner || ApplObj;
  this.container = null;
  this.isLayer = bIsLayer || false;
}
AGVisComp.prototype = (this.isLayer)?new DynLayer():new Object();

I want an object (AGVisComp) inherited by the DynLayer or by the Object
(bIsLayer parameter)

Thanks

Andreas Gortsilas


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to