I am new to jsfl. I finally figured out how you can select all the shape objects on the stage with a given frame.
PHP Code:
var elts = tl.layers[tl.currentLayer].frames[0].elements;
for (var x = 0; x < elts.length; x++) {
var elt = elts[x];
var type = elt.instanceType;
if(type=="shape")
{
//Selects all shape objects
}
}
However, this will select all the shape objects. Is it possible to write a loop to go through all the shape objects.
What I want to do is to write a loop that takes each shape make convert it into a MC.
Please advise,
Thanks in advance!
Justin