Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

java script button only works once?

$
0
0

I am a novice with JavaScript, but Edge Animate seems like it might be a tool that I can work with. I have created pages using symbols with simple in/out slide animations using  JavaScript.  They are triggered on the buttons with the following code:

 

sym.stop(4000);

var current = sym.getVariable("current");

if (current != "") {

   sym.getSymbol(current).play("out");

}

sym.getSymbol("testimPg").play("in");

sym.setVariable("current", "testimPg");

 

 

The stage action for compositionready is this;

sym.setVariable("current", "baseAnim");

 

every page works fine except my testimonial page (testimPg)

 

The animations work fine for all the other buttons but on the testimonial page it only fire correctly once!?

If you click on other pages and then go back to the testimonial button, it no longer functions properly —the symbol is no longer visible when the testimonial button is clicked!?

Can anybody figure out why this is happening.

here is a link to the page:

 

http://whelanartdesign.com/web/WhelartDesign0714v4.html

 

Any help would be grateful

thanks


Viewing all articles
Browse latest Browse all 9897

Trending Articles