collision and particle emit

Hi,
There’s a scene containing ball and small box, and there is particle system over this box, Now, I can move the ball using keys,It’s imposed when ball collide the box the emitter start emit, this is my code attached to box:

// when ball collide box, smoke start
function OnTriggerEnter (other : Collider) {
particleEmitter.emit = true;
}

The problem is particle always emit and not obliged to my code (it should emit only when ball collide box)
where is the mistake here…?!

Would this not work?

function OnTriggerExit (other : Collider) {
    particleEmitter.emit = false;
}

Sorry, not solve the problem, here is my full files:

239274–8559–$ball_400.rar (853 KB)

Did you first turn off the emitter in Start()? Emitters are set up to emit by default, so you need to turn it off in the beginning, before you can turn it on later.