You could create an instance variable for the enemies called "state" for example. When is set to 1 you set the behavior group of the enemy to be active and when is set to 0 you set it inactive. So, when enemy "Is on screen" set enemy state to 1 else set it to 0.
Thanks anty21ro . This is a good solution. I also thought of another solution that I make a dummy sprite for each enemy and this dummy has only one function. If the dummy in screen then it spawn the enemy once, otherwise the enemy is destroyed.
When I post my question, I though that there might already be an event that suspend the sprite if it is out of screen.
Anyways, Your solution is better than mine since it doesn't drain the resources of the CPU.
Thank you all guys. I appreciate your help.