Skip to main content
charlesn79540358
Inspiring
October 11, 2017
Answered

After creating a html5/canvas project

  • October 11, 2017
  • 2 replies
  • 1482 views

Hello,

After creating a html5/canvas project and adding buttons on that project. I decide on the html document I wanted to add a button that had javascript to change the color of one of the symbol buttons created through Adobe animate cc. I wanted to modify the HTML document with a button and some javascript. Is there a way to change the color on the symbol button using an outside button?

Thank you

    This topic has been closed for replies.
    Correct answer kglad

    So I looked in the javascript file for hotbtn_2.

    In my text editor I have button called button6

    <input type="button" value="change symbol background" name="button6" onclick="changebackground();">

    So whenever button6 is click I want to change the backgrond color of hotbtn_2

    inside my javascript file that adobe animates creates. I thought I would create a function called

    function changebackground() {

        this.hotbtn_2.style.backgroundColor = '#ff9900';

    }


    that probably won't work.

    do you know the keyframe hotbtn_2 is created?  if so, check the js for the code for that frame (or, if there is no code for that frame, some other frame and add the needed code for needed frame).

    2 replies

    charlesn79540358
    Inspiring
    October 11, 2017

    ClayUUID

    We have a database file with whole bunch of part numbers and when one of those part numbers is click we want to highlight the symbol buttons created with Adobe animate cc.

    Thanks

    kglad
    Community Expert
    Community Expert
    October 11, 2017

    you haven't responded to any of the questions already asked of you.  re-read the above responses and answer, if you can.

    kglad
    Community Expert
    Community Expert
    October 11, 2017

    are you asking how to do something using animate cc or asking how to do something using a text editor?

    charlesn79540358
    Inspiring
    October 11, 2017

    Hello,

    Using a outside text edited that communicates with the symbol buttons created in Adobe Animate. Is that even possible?

    Thank you

    Legend
    October 11, 2017

    It's possible, but everything you're wanting to do is rather complicated. Have you even determined that you're capable of changing the color of a button inside of Animate?