This only does a half of what I need though. Basically, I need something along the lines of this:
if tile1 is active - tile2 is inactive - LayerA.width= maxWidth (call it 750 for ex.) else if tile 2 is active - tile 1 is inactive -LayerA.width= maxWidth ( " ) else if tile 1 is inactive and tile 2 is inactive -LayerA.width= 0
I feel like the solution is really easy, I just can't seem to find it. Thanks for your help in advance.