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

style.setfont(array[n])によるエラー また letやconstの変数宣言でエラー

Explorer ,
May 11, 2020 May 11, 2020

Copy link to clipboard

Copied

■まず、style.setFont(array[n])のエラーについてですが、
記述しているエクスプレッション
```js
var array=[
"Oswald-Light",
"Oswald-Light",
"Oswald-Light",
];

style.setFont(array[1]);


```

エラーの内容
クラス[global]の[style]という名前のプロパティまたはメソッドが見つからないか、存在しません。名前が変更されたか~~~~~
の内容になります。

■const letでのエラーについて
記述しているエクスプレッション
```js
let myText = "text";
myText
```
エラーの内容
レイヤー1のプロパティ「ソーステキスト」の1行目でエラー予期された結果:エラーの結果としてエクスプレッションが無効になっています。

この結果になります。

ちなみに英語版で起動させても同じエラーで返ってきます。

TOPICS
Expressions

Views

1.0K

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 14, 2020 May 14, 2020

度々すいません。
エクスプレッション(エンジン)の設定は、ファイルメニューにある「プロジェクト設定」で行うようになっています。

Votes

Translate

Translate
Community Expert ,
May 12, 2020 May 12, 2020

Copy link to clipboard

Copied

arrayはレイヤーのプロパティでも以前から使用できなかったので、対応していないと思います。
間違っていたらすいません。

 

<追記>

let のエクスプレッションは、CC2019で試したところテキストが表示されました。

 

環境設定のエクスプレッションの設定がJava Scriptになっているでしょうか?

確認してください。

 

CC2020で確認したところArrayも動作していました。

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 14, 2020 May 14, 2020

Copy link to clipboard

Copied

お答えいただきありがとうございます。

私の設定はこのようになっております。

bandicam 2020-05-15 02-02-09-097.jpg

 

こちらも変わらずエラーになります。

 

bandicam 2020-05-15 02-04-41-112.jpg

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 14, 2020 May 14, 2020

Copy link to clipboard

Copied

度々すいません。
エクスプレッション(エンジン)の設定は、ファイルメニューにある「プロジェクト設定」で行うようになっています。

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 14, 2020 May 14, 2020

Copy link to clipboard

Copied

LATEST

Mukaida様
おっしゃる通りエクスプレッション(エンジン)の設定が正しく設定されていなかった事が原因でした!
的確なご指示ありがとうございました!

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