≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Using Object-Oriented Javascript with CopperCube
Posted by:
(you are not logged in)
Enter the missing letter in: "Inter?ational"
(you are not logged in)
Text:
[quote][b][/b] wrote: Basically everything is an object in JavaScript, you just need a way to come up with a system to use it, that you like. I'm personally usually writing classes / objects like this: [code] // this is the constructor NameOfMyClass = function(param1, param2, param3) { // do initialization stuff here } NameOfMyClass.prototype = new NameOftheBaseClass(); NameOfMyClass.prototype.AMemberFunction = function() { // implementation of the member function here } [/code] That way you can easily derive stuff from other classes, and create objects easily using the usual [code]var obj = new NameOfMyClass(x,y,z);[/code] notation.[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact