after hours reading API and forums, I'm still stuck doing the following.
First I create Child Symbol of order in my Symbol Content which in on main comp.sym.getComposition().getStage().createChildSymbol("order", "content");
In my Child Symbol order I got a div element named step1 I would like to get control on.
sym.getComposition().getStage().getSymbol("content").children("order").$("step1").html('m y Text');
What is the common path to access ChildElement create by creatChildSymbol ?
Dynamically created objects return their reference. You can use them later.
// Creates an instance of "order" inside "content"
var order_inst1 = sym.getComposition().getStage().createChildSymbol("order", "content");
// "step1" is an element of order_inst1
order_inst1.$("step1").html('m y Text');
The way that has worked for me is to assign a new id to the element. For example I have a symbol called 'button'. I create it on the Stage then I assign an id to it. Then I can use the symbol with the new ID with the # in front of it.
var button = sym.createChildSymbol("button", "Stage");