I have been working to get this particular down light to turn on if the switch is clicked or if the mouse moves over it and to be off in any other situation (switch clicked to the off position *unlit* or mouse not hovering over the downlight).
However what is currently happening is as follows :
1 - Downlight starts off turned on and Light switch is lit up (due to global variable Light_Switch being set to 1 by default)
2 - Downlight turns on when turned off and the mouse moves over the down light but flicks off when the mouse is not over the down light
3 - Light turns off when the switch is clicked and the switch also stops being lit.
PROBLEM : when I click the light switch again... the down light does not come back on.
Only when I then move my cursor over the down light does it turn back on again and stay on. but for some reason it requires the mouse to move over the downlight sprite for it to update and realise that the variable has changed back to 1 and therefore should already be on permanently again.
CODE in QUESTION : below :
<img src="http://a1.ec-images.myspacecdn.com/images02/130/adde15e2a741472b8dda32b2f6800e15/l.png" border="0" />