Highlighted

Animate motion and color of an object

New Here ,
Apr 24, 2019

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.

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

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);

}

}

TOPICS
Discussions

Views

63

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Animate motion and color of an object

New Here ,
Apr 24, 2019

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.

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

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);

}

}

TOPICS
Discussions

Views

64

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Apr 24, 2019 0
Adobe Community Professional ,
Apr 24, 2019

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);

}

}

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 24, 2019 0