function foo(x,y,z)
{
    this.DynLayer = DynLayer;
    this.DynLayer();
}
foo.prototype = new DynLayer()

  I've seen this type of thing in a couple examples (as part of the object 
definition).
  1) what does it mean to do a foo.prototype? I understand when you do 
something like
foo.prototype.isCool=true           or
foo.prototype.setColor=function(col)
but not the one that isn't 'adding' some object/function to the object 
prototype.
  2) the first 2 lines....
I'm guessing that you instantiated the object by saying new 
foo(x,y,z)...this somehow created made the object a DynLayer because of the 
foo.prototype...Then since it's a DynLayer you're pointing the this.DynLayer 
property to the DynLayer function and then initializing it with the 
this.DynLayer() function call???
  That doesn't make much sense...so any clarification would be great, 
thanks!

  -James

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to