Skip to main content
chienbleu
Known Participant
Nov 3, 2022 10:44 PM UTC
Answered

throw_idn

when i name a layer "throw" exactly like that it automatically renames it to throw_idn. why? it doesnt matter, i'm just curious

This topic is closed to new replies. Start a new post to keep the conversation going.
JoãoCésar17023019
JoãoCésar17023019Correct answer
Community Expert
Nov 3, 2022 11:13 PM UTC

Yeah, it's indeed weird.

 

But I guess it's like this if advanced layers are being referenced by code.

7 replies

JoãoCésar17023019
Community Expert
Community Expert
Nov 3, 2022 11:06 PM UTC

Hi.

 

It's because throw is a reserved word both by AS3 and JavaScript and Animate doesn't allow layers to be named using these special words.

 

Regards,

JC

Translate
kglad
Community Expert
Community Expert
Nov 3, 2022 11:11 PM UTC

that makes no sense (but it is what it is).  that's a string, not a key word. layer names/strings aren't even referenceable via as3/js - but are with jsfl

 

while scenes names (in as3, obviously) are referenceable and you can use reserved words..

Translate
JoãoCésar17023019
Community Expert
JoãoCésar17023019Community ExpertCorrect answer
Community Expert
Nov 3, 2022 11:13 PM UTC

Yeah, it's indeed weird.

 

But I guess it's like this if advanced layers are being referenced by code.

Translate
kglad
Community Expert
Community Expert
Nov 3, 2022 11:00 PM UTC

that's funny.  and i was going to make a joke at your expense, but i just tested and i see the same thing.

 

you found a bug!!!!

Translate