≡
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: "Inte?national"
(you are not logged in)
Text:
[quote][b]Guest[/b] wrote: Remember the ball drop example I sent you, moon? I had a JS file in the folder. I called functions from that file using CC's behaviors and actions. It's just a text file with the JS extension. You can change the extension to txt and open it just like any other text file. To import your JS file into your ccb file, it must have the exact same name as your cbb. Game.ccb & Game.js, for example. If you want to keep all your code inside the CC editor, you do a Before First Draw behavior with the Execute Java Script action and copy & paste the code into it. Then when you publish your project you don't need the JS file. But yes you can use a JS file with CC's default behaviors and actions and even your own custom ones; however, you can't open a cbb file in a text editor.[/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