I'm a little unclear, you want to trigger ScriptA() from inside ScriptA()?? Or did you mistype and meant trigger Container.ScriptB() or...
Maybe your question is different, but if you don't already know: you execute scripts that are set to 'Manual' by just typing their name.
So if ScriptB() was set to execute 'Manual', then in ScriptA() you would just type: Container.ScriptB();
That would execute ScriptB()
I want to execute scriptB from scriptA (basically, having a button that is a sibling to a container that triggers a script inside that container). This currently doesn't work and gives me a syntax error.
// inside ScriptA, set to trigger on expression 'x' to serve as a click handler for button
// this works
setexpression(container, 'expA', 1);
// this is a syntax error
container.scriptB();
Does this example help you? Obviously you would never set things up like I did in my example, but just to show how you manipulate child expressions/scripts. I only use setexpression if I need to use a string name.
(by the way i'll probably delete the attachment after you see it)
Last edited by ndivuyo on 08 Apr 2015 23:31, edited 1 time in total.
Thanks for the example, it was more or less the setup I had.
The problem was embarrassingly just a typo in a different part of the template that was causing issues with the call to the script, I've got it working now