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

Swap out content with external comps

$
0
0

I'm trying to cycle between 8 compositions using edge animate and the edge commons library. So i have one button and one container which is a symbol, when they tap the btn i want it to load in a comp.

When they tap it again they load in comp number two and just loop around the available comps.

Is this possible? maybe with jquery?

heres my edge code,

 

// Load All-in-One (in creationComplete)
yepnope
({
    load
:"http://cdn.edgecommons.org/an/1.0.0/js/min/EdgeCommons.js",
    complete
: function(){
       
//center main stage
        EC
.centerStage(sym);
       
//load external comp into container
        EC
.loadCompostion("comp/index.html", symgetSymbol("content"));
       
}
});


Viewing all articles
Browse latest Browse all 9897

Trending Articles