So I was looking at this tutorial and tried copying and pasting out the code from the bottom to make the arrow point to where the mouse is.
HOWEVER! The initial code didn't work by itself and after using Google to sort out a fair few of my errors I became stuck with a problem in my first line of code:
onEnterFrame=function();
Which keeps giving me errors, which I fix like this:
onEnterFramefunction.(); and onEnterFrame.function.(); and many other variations thanks to Google and finding how to fix errors...
So is there anyone out there on AG who knows how to simply fix this problem of mine?
Oh and I've found one of my old actionscript 3 examples. You have to give the movie clip a left-middle registration point and don't forget the instance name of the movie clip.
why didn't you just download the file, you probably lost some stuff by just copy and pasting the code...probably the Movie clip instance name like Dark root mentioned...
This is one of the many reason you don't copy and paste code. That you don't understand because it won't get you anywhere.
Well I don't understand when I try to learn it anyway...so I take snippets of code and learn through that. I read through the whole page anyway and understood that bit...
Well I don't understand when I try to learn it anyway..
This is probably caused by you learning actionscript 3 and 2 at the same time. I would recommend finding a tutorial site or another learning medium and sticking with that site and actionscript version. I would also recommend you forget trig and learn the basic or actionscript. You cannot hope to be successful if you don't know the basics.
I also would like to mention that page doesn't teach actionscript it assumes you know it.
I your really determined to learn flash I would recommend you get the Learning actioscript 3 book. It a fantastic book that doesn't assume you have any previous knowledge of programming and it isn't very expensive. There is also this site that has many other resources including free ones.