I am studying about transformer and get confused about some concept. I have learn that in an ideal simple transformer the primary has two components of current: Magnetization current i.e. the open-secondary primary current. Current that (ignoring small leakage inductances) finds it way (via the turns ratio) to the secondary. The flux in iron core is determined by primary voltage and cannot be affected by secondary coil in a transformer and this is due to the load's ampere-turns in the primary exactly cancelling the secondary ampere-turns. In textbooks that i1N1 = i2N2 since the counter mmf is opposing the mmf of the primary coil. I just wonder if they are exactly the same does it implies that flux will be canceled out? I know flux should not canceled out but the two mmfs are the same this make me confused.