Line 42: Next the shrink boxes function is created.
Line 43: The shrink variable is checked to see if it's true.
Line 44: If it is a loop is created
Line 45: And the boxes are assigned to 'b'
Line 46: Each box is checked to see if their width is higher then 0.
Line 47 - 48: If it is then it's height and width is reduced by the boxSpeed variable.
Line 50 - 51: The width of the box is also checked to see if it is below 1, in which case we'll no longer need to shrink it, so 'shrink' is set back to false.
Line 52: The boxes are reset
Line 53: The top MC's X position is set to equal newPos, whihc is in turn set when each thumbnail is pressed
Line 54: A break is used to stop the for loop. |