Answered
Detecting the end of a movie clip
Hi,
Objective: Display a book that the user can turn the pages to view more text. I used a tutorial from the web to create the turning page.
Process: On layer 1, frame 1 of the main time line, I put an image of a book. On layer 2, frame 1 and also frame 2 of the main time line, I put text for the book. I then created a movie clip (MC) called PageTurnMC that looks like a page in the book is being turned. On layer 3 of the main time line, I put an instance of the MC and called it PageTurn. On layer 4 of the main time line, I put a button to play the MC and advance to frame 2 called drawer1cont (see code).
//code on the button used to turn the book's page
on (release) {
PageTurn.play(); //plays my PageTurnMC
gotoAndStop("drawer1cont"); //advance to the next frame of text
}
Problem: I need to detect when the end of the MC before I advance to the next frame. I have to use the PageTurnMC many times, so it is not possible for me to put the action in the last frame of MC. As of right now, my frame 2 text appears as the PageTurnMC plays which is not what I want.
Thanks for any help.
Objective: Display a book that the user can turn the pages to view more text. I used a tutorial from the web to create the turning page.
Process: On layer 1, frame 1 of the main time line, I put an image of a book. On layer 2, frame 1 and also frame 2 of the main time line, I put text for the book. I then created a movie clip (MC) called PageTurnMC that looks like a page in the book is being turned. On layer 3 of the main time line, I put an instance of the MC and called it PageTurn. On layer 4 of the main time line, I put a button to play the MC and advance to frame 2 called drawer1cont (see code).
//code on the button used to turn the book's page
on (release) {
PageTurn.play(); //plays my PageTurnMC
gotoAndStop("drawer1cont"); //advance to the next frame of text
}
Problem: I need to detect when the end of the MC before I advance to the next frame. I have to use the PageTurnMC many times, so it is not possible for me to put the action in the last frame of MC. As of right now, my frame 2 text appears as the PageTurnMC plays which is not what I want.
Thanks for any help.