MIllis , int not refresh value

This started for me with a PM

Turning on and off is simple, I want to turn on one led, control how long it should be on. if after it goes out, turn on another with another time and something does not work out.

when I used the delay it looked like this.

digitalWrite(focus_pin, HIGH);
delay(focus);
digitalWrite(focus_pin, LOW);
digitalWrite(shooter_pin, HIGH);
delay(shooter);
digitalWrite(shooter_pin, LOW);

I took pity on him/her and wrote more of less what was in the original post although my version had fixed periods, no val1 and val2 variables and the periods array was a const as it did not need to change.

After a few PMs where the requirements changed I suggested that he/she post here but I am no clearer as to what is required.