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

/ Published in: ActionScript 3
Save to your folder(s)

In this script you also removing unused listener.

Copy this code and paste it in your HTML
  1. var even_saved_id = fl.addEventListener('documentSaved', documentSaved);
  2. var even_published_id = fl.addEventListener('postPublish', postPublish);
  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


RSS Icon Subscribe to comments

You need to login to post a comment.