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);