Start the Flash program. Click "New" from the "File" menu on the main Flash menu bar. Click the file type "Flash File" (ActionScript 3.0) from the "New Document" dialog box that appears. Click the "OK" button to close this dialog box and start your flash cursor project.
Select the "Actions" option from the "Window" menu on the main Flash menu bar to open the "Actions" editor. Position your mouse cursor on the first line in the Action's editor and click your "left mouse button."
Type or copy and paste the code below into the Actions editor as the code that will create a red button (the hexadecimal code 0xFF0000 is the color code for red) that is positioned on the Flash stage at the grid location (200,200); has a width of 100 pixels (300 minus 200) and a height of 100 pixels (300 minus 200).
var buttonCursor:MovieClip= new MovieClip();
buttonCursor.graphics.lineStyle(1);
buttonCursor.graphics.beginFill(0xFF0000);
buttonCursor.graphics.drawRect(200,200,300, 300);
buttonCursor.graphics.endFill();
Type on the next line of the "Actions" editor the code listed below to place the red button on the stage
stage.addChild(buttonCursor);
Type the code as shown below on the next line of the Actions editor to change the cursor to a "hand cursor" from a mouse pointer cursor when the mouse cursor is positioned within the boundaries of the red button.
buttonCursor.buttonMode = true;
Review and correct any syntax errors in the code you typed in as listed below. Copy and paste the code below into the Actions editor if you have not already typed the code in.
var buttonCursor:MovieClip= new MovieClip();
buttonCursor.graphics.lineStyle(1);
buttonCursor.graphics.beginFill(0xFF0000);
buttonCursor.graphics.drawRect(200,200,300, 300);
buttonCursor.graphics.endFill();
stage.addChild(buttonCursor);
buttonCursor.buttonMode = true;