I have a third party flash object which i can manipulate through a javascript API they provided. I am tryind to listen to an event on this object and then fire event inside
This is the typical approach to this problem:-
(function(self) { self.chart.addEventListener('create', function() {self.fireEvent('created');}, false); })(this);