Actions – own Mouse cursor
Below you’ll see the results of your actions. |
|
Step by step |
Start a new empty movie. Click on size-button. |
|
Set Size to 300 px (width) x 200 px (height). Set Background Color to your own background color. |
Start by making a button, this can be a very simple one, like the one in a previous tutorial (Button with animation). Name the layer where the button is in button. I’ve created as example the following button : |
Now you can create the cursor. In order to do so create first a layer named cursor. The cursor can be created as follows : - In the menu Insert > New symbol. - Choose for Movie Clip and name it cursor. |
|
Make the cursor not too big. Best can be chosen for one of 40px by 40px in dimensions : |
|
When the cursor is ready, it has to receive an instance name. This can be done in the properties panel. We name him simply cursor. Make sure that the cursor is selected and not the button or anything else. |
Now the only thing left to do is adding the actions. First we create a new layer named actions. We open the actions-panel by selecting Window > Actions or by simply pressing F9. Below you’ll see the panel. On the left are the actions divided in maps. On the right the chosen actions will be displayed. Above all that the possible options. |
|
Select the action hide.mouse by double clicking it. The action can be found in : Objects > Movie > Mouse > Methods > hide Now we only have to indicate that something has to replace it, otherwise we won’t see a cursor at all! Choose Actions > Movie Clip Control > startDrag Type at Target : ”_root.cursor” and check the Lock mouse to center box. If everything is done correctly, the actions panel will look like displayed above. Now it’s time to replace the mousecursor by your own design. Have fun! |
This is a tutorial for Macromedia® Flash MX®.
Macromedia and HomeSite are trademarks or registered trademarks of
Macromedia, Inc. in the United States and/or other countries.
© Tim Beylemans. All rights reserved.