What I have is about 14 different actionscript games/stuff and a few graphic and animations, and i have a problem with one of the actionscript things. What happens is this is completely made with actionscript:
It draws 2 boxes of different colours and also draws a line between them.
The two boxes are dragable, and the line always connects the two. Got it so far?
Ok my problem is the line is drawn by where the mouse is when you are holding the mouse button down on the buttons, and this is made in a function. The code for this is:
function drawline() {
line.clear();
line.lineStyle(1, 0x000000);
line.moveTo(box1._x+10, box1._y+10);
line.lineTo(box2._x+10, box2._y+10);
updateAfterEvent();
}
Ok?Now this function is called while the mouse button is being held down in this code:
if (_root._currentframe=15) {
_root.onMouseMove = drawline;
} else {
_root.onMouseMove<>drawline;
box1.clear;
box2._visible = false;
}
The main part in the problem is that everything appears in another frame because i have got buttons on the bottom of the screen linking to the other actionscripts and stuff. You might need the full code and the .swf file of this, so i have included them in the attachment as a .zip file. But if you need the .fla file too just say so.
Oh and to get to the frame with this game on it, in the .swf click on the arrow down in the bottom right corner and click AS Game. (Have a look at the other games too and if you want to know how to make them just ask
Thanks for any help you can give me. All is appreciated
Oh by the way, flash player 8 resuired if anyone need player 7 version just ask.
And you must tell me which version of flash you are using if you need the .fla because I use Flash Professional 8
