Posted By

TheRabbitFlash on 12/11/14


Tagged

flash CC Professional jsfl documentSaved postPublish


Versions (?)

Flash Professional CC JSFL listeners on Document Saved and Post Publish processing


 / Published in: ActionScript 3
 

In this script you also removing unused listener.

  1. var even_saved_id = fl.addEventListener('documentSaved', documentSaved);
  2. var even_published_id = fl.addEventListener('postPublish', postPublish);
  3.  
  4. function documentSaved(){
  5. alert('documentSaved');
  6. fl.removeEventListener('documentSaved', even_saved_id);
  7. }
  8. function postPublish(){
  9. alert('postPublish');
  10. fl.removeEventListener('postPublish', even_published_id);
  11. }

Report this snippet  

You need to login to post a comment.