fl.findObjectInDocByName() Just doesn't seem to work at all. Am I missing something?
I have a clean Animate file.
One graphic object in the library "blueCircle".
and one instance of that object on the main timeline.
I copied the code directly from the documentation.
It fails everytime.
Am I missing something or is fl.findObjectInDocByName(); no longer supports?
PLEASE HELP!!! I will buy you cookies!
var nameToSearchFor = "blueCircle";
var doc = fl.getDocumentDOM();
var results = fl.findObjectInDocByName(nameToSearchFor, doc);
if (results.length > 0) {
alert("success, found " + results.length + " objects");
}
else {
alert("failed, no objects named " + nameToSearchFor + " found");
}
