Hello Everyone,

How can I add a methord to a class? Consider the code...

------------

function makeMovie(name,lead)
{
this.title = name
this.actors = lead
function showLead()
{
alert("Lead Actors are "+this.actors)
}
}

var film = new makeMovie("Whatever","Whoever")
film.showLead()

-----------

This gives an error
"Object don't support this property or methord."
Thanking You in advance,
Binny V A
http://www.geocities.com/binnyva