Handling animation in Flex

Is it possible to write Actionscript code on different frames using just the Flex SDK? How can this be done?

What is the equivalent for gotoandstop() here?