| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Jul 2001
Posts: 90
|
Is there a way I can get the name of an Instance as it appears in the library?
I know I can get the Instance name that is given to the element but say I loop over several hundred elements on the stage that are all from the Library. I want to give them an Instance name which is the same as the Library Name but I can't see how to get that information. Anyone have an idea how to find out an instance's library name? Thanks, khamstra |
|
|
|
|
|
#2 |
|
Registered User
Join Date: Mar 2005
Location: Oxford UK
Posts: 479
|
Have you tried using item.name? (for library items)
|
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Jul 2001
Posts: 90
|
That only works if your looking in the library....
I can use ".name" for elements and library items but i can't loop over ActionScript Code:
thanks, khamstra |
|
|
|
|
|
#4 |
|
Registered User
Join Date: Mar 2005
Location: Oxford UK
Posts: 479
|
The libraryItem property of Instance (which should be available on your element if it's an instance of a library item) should hold a reference to the library item.
|
|
|
|
|
|
#5 |
|
lala
Join Date: Feb 2002
Location: on the road
Posts: 2,859
|
ActionScript Code:
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|