View Full Version : Get linkage Identifier of a MovieClip
khronnuz
07-02-2005, 03:06 AM
Hi,
Does someone know if it is possible to get the linkage identifier of a movieClip dropped into Stage with Actionscript
e.g. I made a MC and called it cpf in the library, i'm also named it cpf in linkage panel.
on Stage i dropped one cpf and put the instance name of cpf0. what i want is there a way get the property name cpf through something like
cpf0.getProperty("identifier");
tnx
CyanBlue
07-02-2005, 07:11 AM
Howdy and Welcome... :)
I could be wrong, but I don't think you can get that information via ActionScript...
MichaelxxOA
07-02-2005, 08:14 AM
what exactly is the big problem.. this solution seems like over kill. Maybe if you told us the problem you're having we can help find a more efficient or realistic solution.
-Michael
creynders
07-02-2005, 09:50 AM
No you can't and honestly... i can't imagine a situation where you need it...?? :confused:
khronnuz
07-02-2005, 04:40 PM
Hi all you, tnx for posting,
--
the project
I'm working on a government project, it is big, the tech team now is composed by java and actionscript programmers, and designers.
I'm doing the first application and the framework in actionscript needed by the project. Other people from the project will use and support this application and framework.
--
I'm working in screen based Apps. Almost every symbol have a AS 2.0 class associated with it, until now i have 61 class files. A group of symbols have the same behavior except that behavior need to know the name of object, I'm using the instance name, if i could get the identifier, who will use the itens shouldn't care with putting the right instance names. The itens act like ICONS, but the associated class need know the name of object.
i hope i was clear....
know i'm sure i can't get the identifier, i'm thinking of creating a subclass for every ICON type, like ICONx, ICONy.
MichaelxxOA
07-03-2005, 09:05 PM
it's bad coding practice, but the only logical solution would be to hard code the linkage name into the class file that will need it.
-Michael
khronnuz
07-04-2005, 12:56 AM
it's bad coding practice, but the only logical solution would be to hard code the linkage name into the class file that will need it.
-Michael
i think i'm going to do this way...
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.