Creating the Candy
Step 6 : Create the Candy
The next step is to create the MC that will collide and trigger the Hit Test Method. The choc movie clip will also have to be draggable so we will need button in this movie clip too (to interact with the mouse and activate the "startDrag" method). To do this create another movie clip like you did before (choose Insert > New Symbol) and name it "choc". A new timeline will appear. On its stage create the candy picture.
Next select Edit > Select All, making sure the whole candy picture has been selected. Then choose Insert > Convert to Symbol. Name the candy "btn_candy" and select the button option. This will convert the candy picture into a button.
|» Level Intermediate|
Rating: 6 Votes: 74
|A flash lover, programmer and one happy guy!|
|Download the files used in this tutorial.|
|Download (19 kb)|
|More help? Search our boards for quick answers!|