biG frend
Member
|
Main frame has this
hex1 = -25;
hex2 = 0;
hex3 = 60;
hex4 = 60;
hex5 = 150;
hex52 = 150;
_root.createEmptyMovieClip("wall",1);
with (wall) {
_x=hex5;
_y=hex52;
lineStyle(10, 0x000000, 100);
beginFill(0x0000FF,50);
lineTo(50,_root.hex1);
lineTo(100,_root.hex2);
lineTo(85,_root.hex3);
lineTo(15,_root.hex4);
} There are then five buttons all with similar code on on(press) {;
_root.hex1 = _root.hex1 - 10;
_root.createEmptyMovieClip("wall",1);
with (_root.wall) {
_x=_root.hex5;
_y=_root.hex52;
lineStyle(10, 0x000000, 100);
beginFill(0x0000FF,50);
lineTo(50,_root.hex1);
lineTo(100,_root.hex2);
lineTo(85,_root.hex3);
lineTo(15,_root.hex4);
}} Only diffrences is that the sum at the top has a diffrent variable and a diffrent value in.
|