R0J0hound, sorry when i was said not working, i don't mean your code.
grigrizljac, thank you but is not working the method i need.
Please guys see the version to understand, i add another box: http://odiusfly.com/chain_v1_fixed2.capx
<img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation"> As Kyatric said, maybe instance variable or something to help. But it's an idea.
Maybe something to detect the previous box if has green color for example, and to give to the new box a green color too. But always to work like a chain. If something disconnect to return the red color. I don't know, I have stuck.. <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad">
NOTE: Connect all boxes, all good! Now, disconnect the box 3. I don't want to remain green the box 4 and box 5.
As i said above think a line, a cable. Think box 1 (Basic) as switch and the last box (in this example: box 5) as a lamp. Need to be a logical connection.
BIG THANKS!!!