I have no idea how it's done in Adobe tool, I never used that. You have to add script to the last (existing) frame in the timeline for that speed - not to add a frame. The action that is executed once the frame is entered. Not onEnterFrame() action - that is executed not just when object timeline moves to that frame but it keeps executing it all the time it stays in that frame.