≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Calling parameters of behaviors in JS
Posted by:
(you are not logged in)
Enter the missing letter in: "Internat?onal"
(you are not logged in)
Text:
[quote][b]Guest[/b] wrote: Yes the JS file outside is similar (perhaps not exactly) like the Before First Draw behavior. I believe the inbuilt behaviors and actions of CC are written in C++, but most if not all can be written in JS in your own custom behavior/actions using the JS API that comes with CC. The JS API is like a set of functions that can be used to translate code into C++ using JS. CC interprets these functions as C++ code. Behaviors/actions use multiple functions as well as other parts of JS to perform their instructed purposes. Basically there are no exact equivalents of CC's behaviors/actions in the JS API because they are made up of similar functions written in C++. For something like the On Proximity behavior you would write a code that tracks the distance between two points and performs an action when a set criteria is met. There are functions in the JS API that allows you to get key and mouse events exactly like how the When Clicked behavior works. I know this all may sound complex, but it's actually pretty simple once you get the needed understanding. Let me know if you need any more clarification.[/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