List Info

Thread: Herency in Director (javascript)




Herency in Director (javascript)
user name
2005-12-29 16:09:23
> Hi, i've a problem with this (in a single moviescript):
>
> function CClipper ()
> {
>    this.mydummy2 = 0;
> }
>
> function CSprite ()
> {
>    this.dummy = 0;
> }
>
> CSprite.prototype = new CClipper ();

I'm no expert on JS syntax in Lingo, but this line looks
weird to me. You're 
setting the prototype of a function to an object? What does
that even mean? 
And CClipper () is just the value 0 anyway, so 'new
CClipper()' is the same 
as 'new 0' which doesn't make any sense.

Danny 

_______________________________________________
dirGames-L mailing list  -  dirGames-Lnuttybar.drama.uga.edu
http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames
-l
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )