i was wondering if someone can help me out with the following.
I have a the maintimeline with on it a movieclip. Inside this movieclip
is a png, that I would like to trace as a bitmap.
I can't seem to target the png that is nested in the movieclip. If i
understand correctly I will first need to get it the timeline of the png
holder clip from the library and then select the frame. Here is my code
which throws a "selection: Argument number 1 is invalid."
var doc = fl.getDocumentDOM();
var library = doc.library;
var items = library.items.concat();
i = items.length;
var item = items[i];
if (item.itemType == 'bitmap')
var imageName = item.name.split('.');
var image = doc.getTimeline().layers.frames.elements;
doc.selection = image
doc.traceBitmap(100, 100 , 'normal' , 'normal');
Hope someone can help!
Flashcoders mailing list