How do I get this.runtime object?

Get help using Construct 2

Post » Mon Mar 24, 2014 10:02 am

To call a custom function named LoadSolution we use this line :
cr.plugins_.Function.prototype.acts.CallFunction("LoadSolution", []);

but in c2runtime.js ; this.runtime comes undefined in below code :
Acts.prototype.CallFunction = function (name_, params_)
{
var fs = pushFuncStack();
fs.name = name_.toLowerCase();
fs.retVal = 0;
cr.shallowAssignArray(fs.params, params_);
var ran = this.runtime.trigger(cr.plugins_.Function.prototype.cnds.OnFunction, this, fs.name);
if (isInPreview && !ran)
{
;
}
popFuncStack();
};

Any solution ?
B
3
Posts: 3
Reputation: 181

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests