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

movie clip width

Explorer ,
May 24, 2021 May 24, 2021

Copy link to clipboard

Copied

how can i know the width of the movie clip?

i tried this.box.width

but it is not work.

Views

266

Translate

Translate

Report

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

Votes

Translate

Translate
Community Expert ,
May 24, 2021 May 24, 2021

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

thanks it is work

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

You're welcome.

Votes

Translate

Translate

Report

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