Lugosi
07-23-2004, 09:40 PM
I am using Flash MX 2004. I have recently inherited the maintenance of a website that was designed in Flash MX.
I have a main timeline which has multiple frames which are labelled. One of the frames is called performance. Within the performance frame I have opened another timeline on which I add two performance charts. Each chart is on it own frame which are labelled argon and air. The argon chart is the first chart that displays when a user clicks a link to that page.
I have added a button on the argon page to connect to the air chart. This button has the following action:
on (release) {
gotoAndStop ("air");
}
When tested the above button doesn't work.
I have also tried using the frame number (frame 11) as opposed to the frame label and I seem to be getting the frame 11 on the main timeline, not the 'sub' timeline. I think this issue has to do with paths but I haven't been able to pinpoint the problem. How do I make sure that the code is 'looking' at the right timeline (the current timeline) and not the root timeline?
I have created other buttons with working links but I'm not sure what I'm doing wrong this time. I have also created a test document and put a couple buttons on it with similar code and the buttons work...however I only had one timeline in my test.
Any help would be greatly appreciated.
Cheers
Lugosi
I have a main timeline which has multiple frames which are labelled. One of the frames is called performance. Within the performance frame I have opened another timeline on which I add two performance charts. Each chart is on it own frame which are labelled argon and air. The argon chart is the first chart that displays when a user clicks a link to that page.
I have added a button on the argon page to connect to the air chart. This button has the following action:
on (release) {
gotoAndStop ("air");
}
When tested the above button doesn't work.
I have also tried using the frame number (frame 11) as opposed to the frame label and I seem to be getting the frame 11 on the main timeline, not the 'sub' timeline. I think this issue has to do with paths but I haven't been able to pinpoint the problem. How do I make sure that the code is 'looking' at the right timeline (the current timeline) and not the root timeline?
I have created other buttons with working links but I'm not sure what I'm doing wrong this time. I have also created a test document and put a couple buttons on it with similar code and the buttons work...however I only had one timeline in my test.
Any help would be greatly appreciated.
Cheers
Lugosi