/ Published in: ActionScript 3
In this script you also removing unused listener.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var even_saved_id = fl.addEventListener('documentSaved', documentSaved); var even_published_id = fl.addEventListener('postPublish', postPublish); function documentSaved(){ alert('documentSaved'); fl.removeEventListener('documentSaved', even_saved_id); } function postPublish(){ alert('postPublish'); fl.removeEventListener('postPublish', even_published_id); }