This content has been marked as final. Show 5 replies
Why not label the frame that you want to target? Then you can use that label: _parent.gotoAndStop("chXEnd");
Tried it; didn't work. Since the frame I'm wanting to go to is inside a movieclip that's inside the parent movieclip, it doesn't see it, no matter what I name it. It's set up like this:
[frame1 frame2 frame3 frame4 frame5 frame6 frame7 frame8 frame9 frame10]
ch1_mc ch2_mc ch3_mc ch4_mc ch5_mc ch6_mc ch7_mc ch8_mc ch9_mc ch10_mc
12 frames 9 frames 10 frames etc etc etc etc etc etc etc
So I need to get from the first frame of say chapter 3 to the last frame of chapter 2, or from the first frame of chapter 2 to the last frame of chapter 1.
Then the problem is a matter of scope. Since you are placing your code directly on the objects, I'm guessing that you are not naming the object instances and/or maintaining them on the timeline so that they hold a reference to one another.
Without seeing the actual movie, its difficult to tell what the solution might be. Can you post an example that I can look at?
I think that in essence there is a better way to go about the design of a system of this nature. The UI controls should reside on the main timeline, as a single instance, and that the operating codes should be 'dynamic' in that they do not limit you to a specific number of pages or chapters within the file. In this way adding or removing a chapter or page, or different page quantities, will not effect the navigation system, and allow you to construct the elements with more freedom, and without a system of 'labels' (although i do like labels - lol) I have prepared a demo example of a system such as this for you to review HERE
Thanks for the info, I'll have to keep that in mind for future projects, but we've been working on this for about 2 months and it would be a huge burden to have to change the navigation system now. Here's a photo of the main timeline:
And here is an example of one of the chapters:
All of the chapters are set up the same way. There is a "chapter" movieclip on each of the frames in Scene 1 so all of the base items (background, navigation buttons, etc) are the same in every chapter.
So, if anyone has any suggestions, let me know.