Skip to main content
chienbleu
Known Participant
Jan 26, 2023 10:12 PM UTC
Question

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

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 is closed to new replies. Start a new post to keep the conversation going.

4 replies

JoãoCésar17023019
Community Expert
Community Expert
Jan 30, 2023 11:48 AM UTC

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
kglad
Community Expert
Community Expert
Jan 26, 2023 10:24 PM UTC

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
chienbleu
chienbleuAuthor
Known Participant
Jan 27, 2023 3:51 PM UTC

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
kglad
Community Expert
Community Expert
Jan 27, 2023 6:12 PM UTC

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