PDA

View Full Version : Stupid Question - library link ID's


daytonian
12-22-2004, 04:14 PM
I have a question regarding targeting library items from a 'flipping book' component I have purchased from flippingbook.com. In the parameters section where you list out the files for the pages to load I do not know how to target library items. It works fine with external files using a traditional path. I know this is probably newbie stuff but I just dont know how it works. All the documentation says about loading library items is "The paths can be library link ID's". So where do I give the library item an ID and how to I link to it inside of the components parameters? Thanx a ton.

==
Ian

palacajoe
12-22-2004, 04:27 PM
right-click the item in the library and choose linkage from the context menu.

daytonian
12-22-2004, 05:16 PM
Okay... then what?

palacajoe
12-22-2004, 05:23 PM
I'm not sure what you're doing, but assuming you've given the clip a linkage id of "clip" the most common way to link to it would be as follows:

_root.attachMovie("clip", "name_of_instance_goes_here", 1, {});

The 1, by the way, is the level. It could be any number. Between the curly braces, you could put any variables applicable to the instance in name/value pairs (e.g. {_x:100, _y:200, color:"red"}).

SavageGurl
12-22-2004, 05:24 PM
check "export for actionscript"

go to the Parameters panel (its where your Properties panel is) you should see something like "contentPath". Type the name that is now in "Linkage ID" for the MC (if you forgot the name, right-click on the MC again and go to linkage to see the ID name)

daytonian
12-22-2004, 06:28 PM
Thanks everyone, worked great! Have a wonderful holiday.

==
Ian