Please help with actionscripting

In my game u hav 2 blast bees and spiders out of the air

it dousnt fire :frowning:
I done the tutorial but it dont work

Heres the bullet actions:

 onClipEvent (load) {
	if (_root.fire == 1) {
		this._x = _root.Cannon._x;
		this._y = _root.cannon._y;
	}
}
onClipEvent (load) {
	this._visible = 0;
}
onClipEvent (enterFrame) {
	if (this != _level0.bullet) {
		if (_root.fire == 1) {
			this._y -= 5;
			this._visible = 1;
		}
		if (this._y<0) {
			this.removeMovieClip();
		}
	}
}

And heres the cannon actions:

onClipEvent (enterFrame) {
	if (Key.isDown(Key.Left)) {
		_root.cannon._x -= 10;
	}
	if (Key.isDown(Key.Right)) {
		_root.cannon._x += 10;
	}
}
onClipEvent (load) {
	if (Key.isdown(key.space)) {
		_root.fire = 1;
		_root.i += 1;
		duplicateMovieClip(_root.bullet, "bullet"+i, i);
	}
}

the movement works just not the cannon that fires bullets :frowning: