Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

movie clip width

Explorer ,
May 24, 2021 May 24, 2021

how can i know the width of the movie clip?

i tried this.box.width

but it is not work.

420
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , May 24, 2021 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

Translate
Community Expert ,
May 24, 2021 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 26, 2021 May 26, 2021

thanks it is work

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 26, 2021 May 26, 2021
LATEST

You're welcome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines