Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要更改 .fla 文件 (Flash CS3) 中所有文本字段中的文本。看起来我应该调用 JSFL 函数 "fl.findObjectInDocByType("text", fl.getDocumentDOM())" 它将返回所有元素,但它返回零长度数组。我还有其他方法可以迭代所有库项目,并更改 MovieClips 中 TextField 的值吗?
当从命令菜单在打开的 FLA 上运行时,此代码对我有用:
var doc = fl.getDocumentDOM(); var textFieldArray = fl.findObjectInDocByType("text", doc); fl.trace (textFieldArray.length+ "text Fields found in "+ doc.name);