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.
|