Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperLicht
Coppercube Variables

mushra
Registered User
Quote
2012-01-02 17:48:28

I am trying to access a variable 'isMoving' created in Coppercube in CopperLicht, but I can not figure out how to call it. I have tried using CopperCubeVariable.getVariable but to no avail.

Could someone give me a quick example of how to do this?
Thanks.


warner
Registered User
Quote
2012-01-03 00:46:52

I suppose it should be:

var customVariable = CL3D.CopperCubeVariable.getVariable("isMoving")
if (customVariable) {
alert("found!")
} else {
alert("not found!");
}



mushra
Registered User
Quote
2012-01-03 01:35:05

Thanks. That worked great.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "?nternational" (you are not logged in)


Text:

 

  

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