Well, you can make them spawn at random, and make them contain another sprite which acts like a lighting. Then mke them move at random using two sine behaviors with a lot of random.
For the lightning effect, you can also just add the glow effect to the fly if it's just a really small sprite/dot.