can one button do two things in animate CC?
i'm a designer & 2D animator and i stopped coding somewhere before AS3 so my coding chops are minimal.
I know I'm late to the dance, but i'm just now starting to learn about animate cc & html5.
i thought i'd take an old .fla file and try and convert it to Animate CC and then to html5.
i'm starting with a simple image slider.
I found code online to allow me to make a simple slide show but now I'd like to add some functionality to the 'next button'
i'm trying to add 'AnimateHorizontally' to an element that's on screen when the button is clicked.
i found this code:
this.moveObject.addEventListener("tick", fl_AnimateHorizontally.bind(this));
function fl_AnimateHorizontally()
{
this.moveObject.x+=100;
}
which moves the 'moveObject' 100 pixels to the right.
but it does it when the playback head enters the frame. how do i get it to move when the button is clicked instead.
and can multiple elements be added so one click starts a number of elements moving at once.
be gentle, if this is too code heavy I may have to give up.
thanks,
martoons
