I have a small problem with jsfl. I'm trying to convert make jsfl to convert all shapes to movie clips in *.fla file.
Here is some files to test, simple scene and jsfl script, which converts all shapes in file to movie clips.
Symbol 1 -> Layer 2 -> frame 50
At line 87 of file "ConvertToMovieClips.jsfl":
'convertToSymbol' requires a selection.
but it finds Shape and creates Array for selection, but document.selection.length still 0.
I tried to move this keyframe and sometimes it's working fine, sometimes throws this error.
Any solution or workaround for this?
problem fla and jsfl script
for (k = 0; k < frame.elements.length; k++)
element = frame.elements[k];
if (element.elementType == "shape")
selection = new Array();
selection = element;
doc.selection = selection;
doc.convertToSymbol("movie clip", "", "top left");