I’ve created a particle effect that moves random particles starting inside the stage that eventually move off of the stage. I’m trying to put a removeEventListener in an “if” to take the particles off the stage when the are not in sight. My only problem is I don’t know how to phrase that condition. I’ve tried variations of the below code but don’t get the right effect.
[AS]
if (this.x > stage.stageHeight)
{
this.removeEventListener…
}
[/AS]
Any help would be appreciated!