Kirix Support Forums
call a second script to execute from first script
2 posts
• Page 1 of 1
call a second script to execute from first script
How can i execute another script from a script? What is the syntax to do that?
- abenitez77
- Registered User
- Posts: 143
- Joined: Fri Jan 21, 2011 12:42 pm
Re: call a second script to execute from first script
If you want to execute a script in the project from another script, use HostApp.execute() or HostApp.executeAndWait().
See here:
http://www.kirix.com/docs/HostApp.html#HostApp.execute
http://www.kirix.com/docs/HostApp.html# ... uteAndWait
If you simply want to reference the functions of one script from another, use the include directive at the top of the script:
include "script_filename.js";
See here:
http://www.kirix.com/docs/HostApp.html#HostApp.execute
http://www.kirix.com/docs/HostApp.html# ... uteAndWait
If you simply want to reference the functions of one script from another, use the include directive at the top of the script:
include "script_filename.js";
Aaron Williams
Kirix Support Team
Kirix Support Team
-
Aaron - Kirix Support Team
- Posts: 120
- Joined: Fri Dec 16, 2005 3:01 pm
2 posts
· Page 1 of 1
Return to Strata Help & Feedback