Flash 8 uses mainly Actionscript 2.0, and that code is also in the same language, so it yeah, it should work