I have to get a screen show effect "push up" to a Flash frame. it has some other graphics too. To bring that effect to a frame i am creating all the shapes and tying them to a sprite. and calling show frame 10 times.
So finally it brings the push up effect to a frame.

Actually there are 4 frames. But to bring this screen show effect i am calling show frame almost 10 to 15 times more. so flash is treating them as 14 frames.

Finally I am creating one navigation bar which provides First, Prev, Next, Last buttons. But when i click the next button it is going to one of the next show frame, but not to the frame what i intended to show(the one among those 4 frames).

To solve that problem i implemented GotoFrame action tag.
But To give the next frame number i don't know what will be the next frame number. It will be dynamically decided.

How can i solve this problem? Can anyone please help me?
It is very urgent. any help will be greatly appreciated.
Thank you very much.