Whipped up a JSFL to print out all your frame labels in a label:
var layers = fl.getDocumentDOM().getTimeline().layers;
var hasSeenFrames = new Array();
var frameLabelArray = new Array();
for (var i = 0; i < layers.length; i++)
{
var frames = layers[i].frames;
for (j = 0; j < frames.length; j++)
{
if (frames[j].labelType == 'name')
{
if (hasSeenFrames[frames[j].name] == undefined)
{
hasSeenFrames[frames[j].name] = 1;
frameLabelArray.push(frames[j].name);
}
}
}
}
for (var i = 0; i < frameLabelArray.length; ++i)
{
fl.trace(frameLabelArray[i]);
}
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home