How to make/add your own functions to an interface? - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: How to make/add your own functions to an interface? (/showthread.php?tid=62818) How to make/add your own functions to an interface? by CookieRevised on 07-08-2006 at 02:08 PM
(Q1) code: So how would you add functions to a Plus! interface? ------------- (Q2) In this same context, how do you add your own properties to a Plus! interface? So you can set and retrieve them in the conventional manner. (but so that setting it will invoke your own predefined function of course, and the retrieving will run that same function which will return a value). RE: How to make/add your own functions to an interface? by RaceProUK on 07-08-2006 at 11:12 PM
quote:Isn't it possible use, say, 'MsgPlus.prototype.NewFunc = function() { return true; }'? Since MsgPlus is an object to JScript. RE: How to make/add your own functions to an interface? by CookieRevised on 07-09-2006 at 02:22 AM
quote:No, as MsgPlus isn't an object nor constructor... quote: RE: How to make/add your own functions to an interface? by RaceProUK on 07-09-2006 at 08:28 PM Well sorry for thinking it's an object. |