Skip to main content
Known Participant
May 24, 2021
Answered

movie clip width

  • May 24, 2021
  • 1 reply
  • 462 views

how can i know the width of the movie clip?

i tried this.box.width

but it is not work.

    This topic has been closed for replies.
    Correct answer JoãoCésar17023019

    Hi.

     

    If width didn't work, I assume you're working on an HTML5 Canvas document.

     

    If so, try one of the following:

     

    this.yourMC.nominalBounds.width;
    this.yourMC.getBounds().width;

     

     

    I hope it helps.

     

    Regards,

    JC

    1 reply

    JoãoCésar17023019
    Community Expert
    JoãoCésar17023019Community ExpertCorrect answer
    Community Expert
    May 24, 2021

    Hi.

     

    If width didn't work, I assume you're working on an HTML5 Canvas document.

     

    If so, try one of the following:

     

    this.yourMC.nominalBounds.width;
    this.yourMC.getBounds().width;

     

     

    I hope it helps.

     

    Regards,

    JC

    Yigal0D4BAuthor
    Known Participant
    May 26, 2021

    thanks it is work

    JoãoCésar17023019
    Community Expert
    Community Expert
    May 26, 2021

    You're welcome.