Based on cascading through Type II second-harmonic generation, I show how all-optical amplitude modulation and switching can be obtained by utilizing an input wave at the fundamental frequency with unequal orthogonal spatial components. The proposed all-optical transistor/switch is insensitive to the inputs' relative phase, representing a step forward with respect to previously suggested configurations for transparent photonic networks. (C) 1995 Optical Society of America.