Well I saw Merc's problem, and I tryed experimenting and the results weren't actually too bad. Here's the .swf...
http://img293.images..php?image=gun5dn.swf
Here's the code on the 'gun' movie clip. The document size is default 550x400.
onClipEvent (enterFrame) {
_x = _root._xmouse+random(2)+151;
_y = random(2)+410;
}
onClipEvent (enterFrame) {
if(_root._ymouse<=150){
this.gotoAndStop(2)
}
if(_root._ymouse>=320){
this.gotoAndStop(3)
}
if(_root._ymouse<=320 and _root._ymouse>=150){
this.gotoAndStop(1)
}
}
I was pleased with the little shaking gun effect, but then when I tryed to add some actionscript to the 'crosshair' Movie Clip to try and make the gun play a frame with it firing on mouse down, it didn't work. The code on the 'crosshair' is:
onClipEvent (load)
{
startDrag ("", true);
}
onClipEvent(mouseDown){
_root.gun.gotoAndStop(4)
}
onClipEvent(mouseUp){
_root.gun.gotoAndStop(1)
}
If you guys could help I'd appreciate it, and hope this may help or 'inspire' The Merc.