Adobe Edge Animate CC 2014 New Features Lesson #4 Toggle Text when Button Clicked
672 views
(466 Site Views) ~
Last Updated on June 24, 2014
In this lesson, we are going to use a code that Marie Goodwyn created, to make our Mute button change its text, when it is clicked on.
To see the project by Marie Goodwyn, please go to the following page.
http://www.edgehero.com/articles/interactivity
Scroll down to the: setVariable and getVariable
code=============
sym.setVariable('muteMuted',true);
sym.$('Mute').click(function(){
var muteMuted=sym.getVariable('muteMuted');
if(muteMuted==true){
sym.$('Text2').html('Muted');
sym.setVariable('muteMuted',false);
}
else{
sym.$('Text2').html('Mute');
sym.setVariable('muteMuted',true);
}
});
Thank You
Wayne Barron
Dark Effects Production
https://www.facebook.com/darkeffectstv ( Like Us On Facebook )
Spotlight on Dark Effects
http://www.youtube.com/DESpotlight
Follow us on Twitter
https://twitter.com/DarkEffectsTV
http://www.darkeffects.net
http://www.darkeffects.com
http://www.enterview.org/Dark_Effects_Production
Tags
Adobe Edge Animate,Adobe Systems (Award Winner),Adobe Edge,Tutorial,Adobe Edge Animate CC 2014,Adobe Edge Animate CC,Edge Animate,change text on button in edge animate