Ok, I made a trig thing earlier today and it worked. It was a rough sketch though so I didn’t save. So when I came back later and re-made it better. the code didn’t work.
Does anyone see any small thing wrong with this?
Please look over it
This is not PHP it’s actionscript. I just don’t know the Flash code brackets
onEnterFrame=function(){
line1("lineab",1,a._x,a._y,b._x,b._y);
line1("linecb",2,c._x,c._y,b._x,b._y);
line1("lineac",3,a._x,a._y,c._x,c._y);
function line1(line,depth,onex,oney,twox,twoy){
createEmptyMovieClip(line,depth);
line.lineStyle(1,0x000000,100);
line.moveTo(onex,oney);
line.lineTo(twox,twoy);
}
(-:
line is a string 
onEnterFrame = function () {
line1("lineab", 1, a._x, a._y, b._x, b._y);
line1("linecb", 2, c._x, c._y, b._x, b._y);
line1("lineac", 3, a._x, a._y, c._x, c._y);
};
function line1(line, depth, onex, oney, twox, twoy) {
createEmptyMovieClip(line, depth);
this[line].lineStyle(1, 0x000000, 100);
this[line].moveTo(onex, oney);
this[line].lineTo(twox, twoy);
}
AS tags are: [noparse]
[/noparse] 
err. That didn’t work. I’m gonna re-start my computer.:sen:
onEnterFrame=function(){
createEmptyMovieClip ("line1",1);
line1.lineStyle(1,0x000000,100);
line1.moveTo(a._x,a._y);
line1.lineTo(b._x,b._y);
}
That works. So…why doesn’t the function work???:td:
That bugs me soo bad. It worked eariler yesterday. Why didn’t it work later.
This also isn’t working.
onEnterFrame=function(){
ab=1;
b._x=a._x+ab;
}