I need basically a way to convert a group of selected text in movieclips separately with Flash commands. For example, I know to select just text items in the stage is:
var theSelectionArray = fl.getDocumentDOM().selection;
for(var i = 0; i < theSelectionArray.length; i++){
if(theSelectionArray[i].elementType == "text"){
...
}
}
And I know to convert a selection in a movieclip is:
fl.getDocumentDOM().convertToSymbol("movie clip", theName, "top left");
So I need to know the way to loop over the stage and convert each text field in a movieclip.
Thanks.
Why don't you select all the objects and iterate over them as in your example?
Edited: the code above works now. (with a start index.)