[FMX] Interactive Circuit builder...need a few tiny bits of code, so very confused!

Firstly I want to say Hello becuase I am new on here and want to make myself known, well a little…my name is matt anyway and I am a student who’s in the final half of my final year at Uni, I am studying Interactive Multimedia…from the description of the course and how long I’ve been doing it you would have thought that I wouldn’t have these problems…but anyway…

I am making a program for 8-10 year olds to teach them about circuits and electricity. At the moment it is limited in functionality and all I have put in is a log in, character select and a fun area where they can build circuits up. Unfortnatly I have a few actionscript errors which are baffelling me so much!

(http://www.learningcircuits.co.uk/project/main.fla - too big for uploading here (900k))

Please let me apoligise for the length of code…i do understand I have probably written the most code possible to do what I want. I did this becuase I know what coding is like when you are learning and it is always easier (for me) to write code the longest ways possible to get it to work and then tweak it to make it more acceptable)

First of all I really cannot think of a way of making it so when you add a component and then a battery the component powers up. it is easy to code it so when a component goes down it powers up however the reverse it really getting to me.

Secondly I need to be able to make duplicated and draggable components as later on (when more developed) there will be 4 or so sockets which can have different components added.

At the moment that’s all I need help with becuase I am determined to do this myself, however I have so much work to do at the moment it is very hard to spend days and get no results.

Any help is very appreciated!

Thanks for your time, Matt.