flash - JSFL: Suppressing/auto clicking on Dialog boxes -


var tmpdoc = fl.createdocument(); /*..some logic...*/ tmpdoc.additem({x:0,y:0},item); 

my jsfl has above code.
, on 3rd line, dialog box :
has title : "resolve library conflict"
2 radio button options : "replace","dont replace"
2 buttons : "ok","cancel"

due dialog box, have manually monitor
script execution , click on button.

i want either :
1. suppress these kind of dialog boxex altogether.
2. or programatically provide default option these kind of dialogs.

how do jsfl?

you can try check if item exists before adding library using library's itemexists() function:

var doc = fl.getdocumentdom(); var lib = doc.library; //check if item exists first, if so, keep count of symbols same name, append random, etc. if(!lib.itemexists('item')) lib.addnewitem('movie clip','item'); else                        lib.addnewitem('movie clip','item'+math.random()); 

hth


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -