PDA

View Full Version : What is the Linkage Identifier?


simontheak
11-27-2002, 08:03 AM
I've been learning ActionScript for a while now, and I think I like to think I'm understanding alot more of it than I used to.

What I still don't really understand is what the linkage identifier is for. I mean what's the point of it? Can't you just access various movie clips through their instance names. I've noticed a few posts around the forum asking questions about linking their movie clips but I don't really understand what the advantage of doing so is.

So if someone could explain, I'd be most grateful:D

Thanks a lot for your help

farafiro
11-27-2002, 08:39 AM
Linkage is used to do these things:
=> To attach a movie or a sound dynamiclly from the library, u
basicly give it a linkage name and you call it with this name
=> To use it in a shared library

simontheak
12-02-2002, 10:19 AM
Originally posted by farafiro
To attach a movie or a sound dynamiclly from the library, u
basicly give it a linkage name and you call it with this name

So what you're saying is that if I have a MC (or a sound!) in my library that isn't on the main stage at the beginning of my movie then to import it I need to give it a name so that ActionScript can load it when I need it. Is that right?

farafiro
12-02-2002, 10:29 AM
yes u r right in one case, only if it's on the stage. but if u want it to still be in the library and u call it, so u can do

open the lib
chose the object
right click> linkage
check the Export for Action Script and give it a name
make a button on the stageon(release){
_root.attachMovie("yourLinkageName")
_root.yourLinkageName._x = 250
}