tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/303-mapped-listeners-are-suddenly-no-longer-invokedRobotlegs: Discussion 2018-10-18T16:35:25Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/67724922011-04-21T15:17:19Z2011-04-21T15:17:19ZMapped listeners are suddenly no longer invoked<div><p>Sounds to me like the context gets garbage collected. Do you
store the context instance in a property?</p></div>creynderstag:robotlegs.tenderapp.com,2009-10-18:Comment/67724922011-04-21T15:28:44Z2011-04-21T15:28:44ZMapped listeners are suddenly no longer invoked<div><p><em>facepalm</em></p>
<p>I just checked that and indeed: we did not store the context as
a member of the initial view class. I did not realize it's
necessity.</p>
<p>I also did a little test by adding a MouseEvent handler to the
CanvasView: it can still be invoked, even after the problem
appears, so I think you are right and the context get's GC'd.
Testing it now...</p></div>Inxentastag:robotlegs.tenderapp.com,2009-10-18:Comment/67724922011-04-21T15:41:49Z2011-04-21T15:41:49ZMapped listeners are suddenly no longer invoked<div><p>It seems you were right about this. I stored the context and
after 5 min. AFK it still works like a charm. I must have missed
that part on the best practices page or something. Anyway, thanks
again for your time and support Creynders!</p>
<p><em>happyface</em></p></div>Inxentastag:robotlegs.tenderapp.com,2009-10-18:Comment/67724922011-04-21T16:57:41Z2011-04-21T16:57:41ZMapped listeners are suddenly no longer invoked<div><p>It could be it's not in the best practices, since it's standard
behaviour of the flash player.<br>
Glad I could help!</p></div>creynders