Some obscurity about working with actionscript I don't understand--the temp variable is actually relevant here (?!)