step 1 : Draw a rectangle
step 2 : Convert to symbol (press F8) or go to modify -> select convert to symbol
step 3 : Under the ActionScript Linkage and select the "Export for ActionScript"
step 4: Give the class name "mc" and press OK.
step 5: Delete the movieClip from the stage.
Action Script : Create a 5X5 grid
1. attach movieClip in stage.
var myMc:mc = new mc();
myMc.x = 100;
myMc.y = 100;
addChild(myMc);
step 2 : Convert to symbol (press F8) or go to modify -> select convert to symbol
step 3 : Under the ActionScript Linkage and select the "Export for ActionScript"
step 4: Give the class name "mc" and press OK.
step 5: Delete the movieClip from the stage.
Action Script : Create a 5X5 grid
1. attach movieClip in stage.
var myMc:mc = new mc();
myMc.x = 100;
myMc.y = 100;
addChild(myMc);