≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
time counter
Posted by:
(you are not logged in)
Enter the missing letter in: "Internat?onal"
(you are not logged in)
Text:
[quote][b][/b] wrote: Here is what i made and use from all your help but i have one problem i cant fix i was trying to add <property name="timems" and i would only get 0 when calling this.timems variable what im i doing wrong [code]/* <behavior jsname="behavior_count" description="behavior_count"> <property name="timems" type="int" default="1000"> </behavior> */ timems=1000; behavior_count = function() { var now = (new Date()).getTime(); this.endTime = now + timems; } behavior_count.prototype.onAnimate = function() { var now = (new Date()).getTime(); if(now > this.endTime){ count = ccbGetCopperCubeVariable("time"); count = count + 1; ccbSetCopperCubeVariable("time", count); this.endTime = now + timems; } }[/code][/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