Foam is solid-like under low stress and liquid-like under high stress. It can sustain a small load elastically but a large one causes it to flow indefinitely. When shear stress is present, a pair of adjacent bubbles can be squeezed apart by another pair, leading to a T1 switching event. This local but abrupt topological change results in bubble-complexes rearranging from one metastable configuration to another. The resulting macroscopic dynamics is highly nonlinear and complex, involving large local motion that depends on correlations between nearby bubbles. The main goal of this study was to find the connection between the behavior of individual membranes and the whole network and to relate local rearrangements to global rheological properties of flowing foams.