Copy link to clipboard
Copied
I'm new to Adobe Animate, but need to use it for animations on an ATM (banking screen).
I'm trying to make an icon not only bob up and down, but also change from one color to the other to catch the viewers attention and to direct them on how to begin their ATM transaction. The background screen will stay stagnant as the icon moves up and down and changes colors continuously.
Any ideas on how to do this?
My icon is an illustrator file and the background screen is simply a JPG.
create an icon_base movieclip.
shape tween that icon's color.
create an icon_mc and place icon_base on frame 1 of icon_mc and assign it an instance name of icon_base. motion or classic tween icon_base bobbing.
place icon_mc on your main timeline, assign it instance name icon_mc and call icon_animateF(false);
when you want it to bob and color-tween call icon_animateF(true);
when youi want to stop the bob and color-tween call icon_animateF(false);
function icon_animateF(b:Boolean):void{
if(b){
icon_mc.ic
...Copy link to clipboard
Copied
create an icon_base movieclip.
shape tween that icon's color.
create an icon_mc and place icon_base on frame 1 of icon_mc and assign it an instance name of icon_base. motion or classic tween icon_base bobbing.
place icon_mc on your main timeline, assign it instance name icon_mc and call icon_animateF(false);
when you want it to bob and color-tween call icon_animateF(true);
when youi want to stop the bob and color-tween call icon_animateF(false);
function icon_animateF(b:Boolean):void{
if(b){
icon_mc.icon_base.play()
icon_mc.play();
} else {
icon_mc.icon_base.gotoAndStop(1);
icon_mc.gotoAndStop(1);
}
}