Flash CS3 error: fl.getDocumentDOM () has no properties

What causes the publish error: "fl.getDocumentDOM () has no properties"?

The error only occurs when using the Test Project button in the project panel. This doesn't crash the publication, it's just annoying.

0


source to share


2 answers


This happens when you have no flash documents. You can't publish headless to cs3 flash without causing an error (albeit a benign one).



0


source


I have a friendly solution:



var myDocument = fl.getDocumentDom() || false;
if(!myDocument){
  alert("Please open at least one document");
}

      

0


source







All Articles