1. Create
a giant square (about twice the width of your stage) and rotate
45°.
2. Select the shape tool and remove the top anchor to create
a triangle.
3. Create a second square about 10 X 10 pixels and center
it on the stage (this will serve as a guide for positioning
and reshaping your triangle and can be deleted later).
4. Place your triangle so that the bottom corner is in the
center of the square.
5. With the triangle selected, select the Shape tool and
add two anchors to the triangle where it meets the corners
of the square.
6. Remove the bottom anchor from the triangle.
7. Convert your edited shape into a Button.
Test your Button. Note that when you mouse over your Button,
it will respond to the areas that have been removed from your
original square. For the mouse follower to work, you must
change the shape of you Button’s Hit State to match that of
your Button’s other states.
8. Select the ‘Rectangle’ from the Button’s Up State and
Copy the shape.
9. Select the Button’s Hit State and Paste this shape into
it. You should have two shapes in the Button’s Hit State,
the “rectangle” shape you pasted, and the Hit Rectangle shape.
Delete the Hit Rectangle and test your button again. This
time the mouse should only react to the area that your Button
covers.
10. Copy your Button (making sure that none of the button’s
states is selected) and Paste 3 more copies of the button,
and then rotate one 90°, one 180°, and one 270°. You may want
to change the colors of two of these buttons so that you can
arrange them more easily.
11. Arrange your Buttons around the square.
12. Name your Buttons. To keep it simple, name the one on
the top UP, the one on the bottom DOWN, the one on the left
LEFT, etc.
13. Select all of your objects, group as a Sprite, and name
the Sprite FOLLOWER.
14. Return to the main timeline and create a Rectangle that
is the same dimensions as your movie, leave the line, select
no fill, and center. This will help you when aligning and
checking the position of the follower; you can delete this
later.
15. Place your Sprite so that the small square in the center
is just outside the bottom right corner of the stage.