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

Error 1046 type was not found or was not a compile-time constant

Participant ,
Jan 26, 2023 Jan 26, 2023

I'm trying to make multiple instances of my symbol square but this error keeps happening and i have no idea how to fix it. I am not expirenced in Flash coding and I have no idea what a "compile-time constant" is. It should be working. I already enabled Export for Actionscript and I'm using the class name. Please help me this is very annnoying

chienbleu_0-1674770623809.png

chienbleu_1-1674770927577.png

 

TOPICS
ActionScript , Code , Error , Import and export
277
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 ,
Jan 26, 2023 Jan 26, 2023

i don't see a problem, but sometimes i can be blind to typos.

 

copy from the code to your class name (or vice versa) to make sure they're both ("square") the same.

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
Participant ,
Jan 27, 2023 Jan 27, 2023

i did do that and i tried everything else like changing the instance name or linkage name name but nothing works. yesterday when i was farting around it worked randomly and I have no idea why but now it doesn't again. anyways thanks for replying though

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 ,
Jan 27, 2023 Jan 27, 2023

create a new folder

save your fla to that folder

close animate

open the fla from that new folder

test

 

any problem?

 

if there is, type sq as a movieclip:

 

var sq:MovieClip=new square();

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 ,
Jan 30, 2023 Jan 30, 2023
LATEST

Hi.

 

It's just a shot in the dark, but try disabling advanced layers (Ctrl/Cmd + J). Maybe your version of Animate is one of those that have conflicts with this mode.

 

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