This study developes a flexible performance optimal control scheme via reinforcement learning strategy and event-triggered mechanism for flexible-joint robots with random noise and non-affine input. It is notable that an event-triggered optimization mechanism is developed, which meets the optimality principle and saves communication resources. Nevertheless, the existing event-triggered strategy is unable to handle non-affine input, which limits the applicability of this method. To overcome the above problems, a modified event-triggered mechanism is proposed. At the same time, the optimal solution of the system is given by an optimized control algorithm based on the improved performance index function. In the controller design, neural network is used to deal with random disturbances and uncertainties, and an adaptive law is designed to replace the identifier structure. Besides, a flexible prescribed performance function is constructed to yield multiple prescribed performance behaviors by adjusting the key parameters, while the tracking error is stayed within a prescribed boundary. Finally, the effectiveness of the proposed control scheme is further demonstrated by simulation and the experiment of the 2-link flexible-joint robot on the Quanser platform.