Skip to main content
chenjil43641795
Legend
June 30, 2018
Answered

ANCC output HTML can set the ID, And then use getElementById to find it?

  • June 30, 2018
  • 1 reply
  • 1130 views

I'm a novice in code.are learning.

I find that many of them are made with getElementById.

So I was wondering if I could set the ID for the movie clip.

    This topic has been closed for replies.
    Correct answer kglad

    again:

    hide the mouse:

    this.cursor='none';  (assuming you enabled mouseover and there's something on stage even if it has an alpha of 1)

    hide over movieclip (eg mc)

    this.mc.cursor='none' (assuming you enabled mouseover)

    1 reply

    kglad
    Community Expert
    Community Expert
    June 30, 2018

    in animate you can create elements and assign id's. those will work like you expect.

    and you can assiign an id of a movieclip in animate, but it's not going to work like you expect and i'm not even sure that makes any sense.

    chenjil43641795
    Legend
    July 1, 2018

    I want to know how the allocation ID is done.

    Like I want to hide the mouse.

    I found the div ID is animation_container.

    That's why I wrote

    document.getElementById("animation_container").style.cursor = "none";

    But if I want to hide the mouse in the movie clip.

    I don't know how to set an ID for a movie clip and find it

    kglad
    Community Expert
    kgladCommunity ExpertCorrect answer
    Community Expert
    July 1, 2018

    again:

    hide the mouse:

    this.cursor='none';  (assuming you enabled mouseover and there's something on stage even if it has an alpha of 1)

    hide over movieclip (eg mc)

    this.mc.cursor='none' (assuming you enabled mouseover)