The button works now, but the thing it links to doesn't. It's supposed to come up with 5 lines, one in each corner and one in the centre, each one following the mouse around the screen, each a different colour.
Here's the code I've got so far (just three of the lines)-
_root.onEnterFrame = function() {
createEmptyMovieClip("line", 1);
with (line) {
moveTo(275, 200);
lineStyle(3, 0x000000, 100);
lineTo(_root._xmouse, _root._ymouse);
}
};
_root.onEnterFrame = function() {
createEmptyMovieClip("line 2", 1);
with (line 2) {
moveTo(0, 0);
lineStyle(3, 0x0000FF, 100);
lineTo(_root._xmouse, _root._ymouse);
]
};
_root.onEnterFrame = function() {
createEmptyMovieClip("line 3", 1);
with (line 3) {
moveTo(550, 0);
lineStyle(3, 0xFF0000, 100);
lineTo(_root._xmouse, _root._ymouse);
}
};
It then comes up with these errors:
**Error** Scene=Scene 3, layer=Layer 1, frame=1:Line 11: ')' expected
with (line 2) {
**Error** Scene=Scene 3, layer=Layer 1, frame=1:Line 15: Unexpected '}' encountered
}
Total ActionScript Errors: 2 Reported Errors: 2
What's the problem this time? Aargh...this fucking ActionScript.