You need to return your symbol to 0 in order for it to play again.
then when you start again with play() it will play from 0 or you can use:
From the main time line I am hiding with a click command under the home button with this code and it works:
But when I click the contact us button a second time it will not display.
I tried your suggestion, but am not sure where to put the script. Thanks.
Could you explain exactly what is doing what or give a screenshot of your timeline and where your code resides?
Heres the live link:
The "Home" Button contains the script on click: sym.getComposition().getStage().$("ContactUsContent").hide();
Thanks a million
Not sure what you are talking about because everything is working for me. If I click on contact it play the symbol - when I click on home it plays in reverse to return to home. If I click contact us it plays again and so on.
Take another look:
On first render, clicking "Contact US" plays then lands on page saying Contact Us Content. Then, clicking "Home" will make the page Contact Us Content dissapear and play the time line in reverse.
But, click "contact us" a second time, and you will nott see the landing page Contact Us Content.
If its working for you, what browser are you using?
1 person found this helpful
OK. I got it. I need more information. Is everything on the same timeline or do you have symbols for each part?
I personally like to work with symbols as they are a lot easier to control.
So if you had a contact-us symbol you could play if on the contact us button. Then on the home button you could return it to 0 or you could use play(0) to start it from the beginning. This way, no need for hide() if you text was showing at the end of your symbol.
Hope this makes sense.
If you want you can PM me a link to your files and I can look at it.
It works. A paradigm shift.
I updated the link so you can see your fix.
Your a genius!
You are very kind! Good luck on your project.