Samuel L. Jackson has confirmed that his script for the first Avengers movie was stolen and almost sold.