Ok, I have been searching for a way to do this for about 3 days but I have come to no conclusion. I need to find a way to get an animation playing when a button is clicked. It is a little more complicated so let me try and explain. I have an animation of two doors opening and closing. From frame 35 - 65 the doors open, on frame 65 I have text, then from 66 - 96 the doors close. Now my problem comes when I want to change pages. I need the animation on frames 66 - 96 to start playing when any other button is clicke except for the one that opens that page. I have the delay on the buttons and it is working fine but i have no idea how to test if the other buttons are clicked. Do i test the state of the button or how?
yup, something like that… I’m not sure how to explain it any better and the .fla is way too big to post… :(. Let me go through it again:
Frame 65 - 75 = animation of doors opening under which is a layer of text, for example “FAQ”
frame 75 - 85 = animation of doors closing on top of text layer FAQ
frame 75 has a stop action so that the text is visible until someone clicks another button
frames 85 - 95 = animation of doors opening under which is text layer “news”
frame 95 - 105 = animation of doors closing on top of text layer “News”
frame 95 has a stop action so that the text is visible
There are around 5 pages at the moment.
The problem is that if I do a simple gotoAndPlay action on the buttons it works fine if people press the buttons in order… if not then a different layer of text appears underneath (not the one the page they were) so I need to test on the frames where i have the stop action if another button has been clicked so that the animation of the closed doors plays and then goes to the right frame of text.
Please, please, please help me cause it is driving me nuts… :hangover:
I just wanted to thank you very much … it worked like a charm… I didn’t even consider that because i had everything in one .fla but now i separated them and it works beautifully…plus it isn’t so messy :beam:. Again thanks a million