Welcome to WebmasterWorld Guest from 54.146.174.220

Forum Moderators: open

Naming in AS3

   
12:56 am on Sep 24, 2009 (gmt 0)

5+ Year Member



can we have the same name be given to a symbol and to its instance in AS3
1:46 am on Sep 24, 2009 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Absolutely, as long as the two don't have the same scope and create problems, but it's really confusing to debug. :-) I usually let myself get away with it on simple stuff.
6:45 am on Sep 24, 2009 (gmt 0)

5+ Year Member



Earlier when i used to work with cs3 it dint show any errors (may be i was working in as 2)

but recently we got cs4 and error:1046 pops out when the instance and symbol name are the same

4:16 pm on Sep 24, 2009 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Well, I've never had a problem with it, but a search for 1046 error Flash turns up some results that indicate I may be wrong. I have some simple Flash files doing this and no problems, but they are AS2 and older.
4:12 pm on Sep 25, 2009 (gmt 0)

5+ Year Member



if adobe concentrates on providing a more clearer picture like MS (in development) , it will be beneficial for everyone
 

Featured Threads

Hot Threads This Week

Hot Threads This Month