By default, FlareVis component listens to events from stage (entire application). However, this may be not practical. So we can set the hitArea to itself only. In this example, hitArea is the container Canvas.
Also, you might want to clip the FlareVis object so it will not draw outside the designated area. This can be done by applying mask to it as follows:
<mx:Canvas id="container" width="100%" height="100%">
<mx:Canvas width="100%" height="100%" backgroundColor="0x000000" id="cv"/>
<flare:FlareVis id="tviz" width="100%" height="100%" mask="{cv}"tree="{snapshot.heap_tree}" hitArea="{container}"/>
</mx:Canvas>