The simple way. (for intermediate Flashers)
I didn’t want to be deceptive with the title. It is the simple way… but you’ve got to know some things about Flash before you can do it. You must understand the difference between adding code to movie clips, buttons and frames.
- create two movie clips.
The first should be a cross hair object. You can certainly import one, but I recomend just creating a circle stroke and placing a cross hair in the middle with the line tool. very little for the processor to have to handle.
The second clip should be a bullet hole. If you can make a cool one in Flash, more power to you… but this works best if you’ve got a pretty semetrical object. The height and width should be about the same size and it should be pretty small I’d imagine.
- The first clip is placed on the stage. Paste the following code to this movieclip’s action panel.
//if you would like to limit the number of buttlets on the screen
- Then it’s a simple matter of setting the linkage on your bullet.
open the library, if it’s not already open select the bullet movieclip and right click on it. Select “linkage” from the menu
in the linkage dialogue that opens select “export this object”, and give it a name in the text field of “bhole”. hit “ok”.
It should work. If it doesn’t though… give me a shout and I’ll look at it again. There might be a syntax error or two in there.