Programatically Responding to the Replace Existing Item dialog in JSFL


jsfl includes nice command named additemtodocument. allows script add components component panel stage (and library). if component appears on stage , addition newer version on stage, dialog appears question 'one or more library items exist in document.' rather inconvient happening automating task. main goal update components in many files after update component. don't want manually respond dialog.

any thoughts on programatically answering dialog?

i having simliar (if not same) issue. have written jsfl script loop through symbols in library (only of type=="movie clip" , linkageexportforas=true) , 1 @ time add them stage. @ bottom of loop selectall() , deleteselection() clear stage before moving on the next symbol. when run script, goes through first 35 mc's fine, hits snag on particular symbol. when snags, warning/prompt "one or more library items exist in document." occurs when pasting 1 document/library another. in case, there 1 .fla open. i'm adding library stage. love know happening, , why. i'd happy not knowing being able handle automatically, supress dialog, auto select choice, keep script running. i'm not worried replacing symbol or not, know isn't new symbol, seems bug. maybe there wrong symbol, i'm not "owner" of .fla, i'm exporting png's of each keyframe of each symbol has "states" layer. fixing symbol isn't ideal solution. maybe can catch error, write error file, , move on.



More discussions in ActionScript 1 and 2


adobe

Comments

Popular posts from this blog

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums

Multithumb configuration params not working? - Joomla! Forum - community, help and support