One button to play a sequence of different sounds
hi,
i want create button play different sounds. example, first click plays sound one, second click plays sound 2 , on.
how can achieve this?
many thanks
phil
the same way symbols.
here idea:
birds= sym.$("birds")[0];
bounce1= sym.$("bounce1")[0];
crowdwalk = sym.$("crowdwalk")[0];
downslide = sym.$("downslide")[0];
eat = sym.$("eat")[0];
var compsounds = [birds,bounce1,crowdwalk,downslide,eat];
var = 0;
sym.$('button').click(function(){
i++;
compsounds[i].play();
});
this assuming sounds on timeline. if in symbols, use symbol scope example:
the large2 sound in symbol explodefw in symbol fireworksani
large2 = sym.getsymbol("fireworksani").getsymbol("explodefw").$("large2")[0];
More discussions in Edge Animate CC
adobe
Comments
Post a Comment