Flyscreen mesh is quite difficult to glue due to the open weave and what it is made from. You could try using a solvent-based glue such as Selleys All Fix Multi Grip which has some body to it and will remain flexible to some extent or you could try a neutral cure silicone such as Roof and Gutter Silicone.