Skip to main content
chienbleu
Known Participant
January 26, 2023
Question

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

  • January 26, 2023
  • 2 replies
  • 346 views

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

 

This topic has been closed for replies.

2 replies

JoãoCésar17023019
Community Expert
Community Expert
January 30, 2023

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

kglad
Community Expert
Community Expert
January 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.

chienbleu
chienbleuAuthor
Known Participant
January 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

kglad
Community Expert
Community Expert
January 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();