Hmm, maybe this is possible or not but I have tried and failed, what I would like is to be able to do the following:
Then I simply want to do the following:Code:function Player() { this.name = "Bob"; this.animate= function(direction) { return direction; stop = function() { //code here } } }
I tried many different ways and the only way I could get it to work is by using:Code:var player = new Player(); player.animate("left").stop();
I know many will know how to do this but I tried researching and couldn't find any results, thanks if you help...Code:player.animate.stop();
Joel.![]()


Reply With Quote

Bookmarks