Skip to main content
chienbleu
Known Participant
November 3, 2022
Answered

throw_idn

  • November 3, 2022
  • 2 replies
  • 466 views

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 has been closed for replies.
Correct answer JoãoCésar17023019

Yeah, it's indeed weird.

 

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

2 replies

JoãoCésar17023019
Community Expert
Community Expert
November 3, 2022

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

kglad
Community Expert
Community Expert
November 3, 2022

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..

JoãoCésar17023019
Community Expert
JoãoCésar17023019Community ExpertCorrect answer
Community Expert
November 3, 2022

Yeah, it's indeed weird.

 

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

kglad
Community Expert
Community Expert
November 3, 2022

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!!!!