Skip to main content
xu zhang
Inspiring
November 23, 2017
Question

Why two different files will be the same ID?

  • November 23, 2017
  • 2 replies
  • 593 views

hi,everyone!thanks help first!

the question:

I created two files with the animate cc 2018 published as HTML 5 canvas. But why these two files is the same id? After I am making a file, copied to copy, change the content into the second file.

This id is generated according to what?

thank you!!

    This topic has been closed for replies.

    2 replies

    Preran
    Legend
    November 27, 2017

    Can you provide us with a reference URL here of the post that you are talking about so that we have more context?

    Thanks,

    Preran

    xu zhang
    xu zhangAuthor
    Inspiring
    July 17, 2018

    Hi Preran,

    Through the template I create two different files. And JS export file Lib attribute ID is the same.

    How to avoid it?

    Or the name of the ID to generate what are the rules?

    thank you!

    JoãoCésar17023019
    Community Expert
    Community Expert
    July 17, 2018

    Hi.

    I also don't really get how this value is generated, but you can change it manually to whatever you want to as long as you use the same value in the .html and in the .js (twice in the JS).

    kglad
    Community Expert
    Community Expert
    November 23, 2017

    what are you calling an 'ID'?

    xu zhang
    xu zhangAuthor
    Inspiring
    November 24, 2017

    HI,kglad

    like this:

    lib.properties = {

      id: '9CDCF89115C51741845FD719570D0412',

      width: 1,

      height: 1,

      fps: 12,

      color: "#FFFFFF",

      opacity: 1.00,

      manifest: [],

      preloads: []

    };

    the id is  '9CDCF89115C51741845FD719570D0412'.

    kglad
    Community Expert
    Community Expert
    November 24, 2017

    i don't know (or, at least, i don't remember) how that id is generated. 

    someone else asked a question about it recently and i answered that question but i don't remember the question or the answer.