Kirix Support Forums

call a second script to execute from first script

Please post any help questions, requests or other feedback here.

call a second script to execute from first script

Postby abenitez77 on Mon May 14, 2012 5:44 pm

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

Postby Aaron on Fri May 25, 2012 3:27 pm

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";
Aaron Williams
Kirix Support Team
User avatar
Aaron
Kirix Support Team
 
Posts: 120
Joined: Fri Dec 16, 2005 3:01 pm

Return to Strata Help & Feedback