How to reset a composition from external script?


hi,

 

i'm making html presentation slide , each slide contains edge animate comps.

the problem when switch , forth opened slide, shows quick flash of comps complete state.

 

here's working example (see last 3 slides):

http://jakartamonorail.com/infographic/comparison.php

 

here's code:

 

theslidecompletecallbackfunction(slideid) {

 

    adobeedge.bootstrapcallback(function(slideid) {

        adobeedge.getcomposition(slideid).getstage().play(0);

    });

 

}

 

pls advise on how reset previous/next comps animation when switching slides.

 

thx.

hi, rizkysyazuli-

 

you're going want reset current slide when you're on way out in order prep playing on way in.  so, on way out:

 

adobeedge.getcomposition(currentslideid).getstage().stop(0);

adobeedge.getcomposition(newslideid).getstage().play(0);

 

something effect.  gets pointed in right direction.

 

thanks,

 

-elaine



More discussions in Edge Animate CC


adobe

Comments

Popular posts from this blog

how to devide a circle into equal parts

"Could not fill because there are not enough opaque source pixels" - not solved by any other thread

Why can't I change the billing info for my account?