# Access library items

**URL:** https://forum.kirupa.com/t/access-library-items/285972
**Category:** Uncategorized
**Created:** [April 8, 2009, 12:08pm UTC](https://forum.kirupa.com/t/access-library-items/285972 "2009-04-08T12:08:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![wilmelk](https://avatars.discourse-cdn.com/v4/letter/w/b5ac83/32.png) [@wilmelk](https://forum.kirupa.com/u/wilmelk)
#### Post date: [April 8, 2009, 12:08pm UTC](https://forum.kirupa.com/t/access-library-items/285972/1 "2009-04-08T12:08:10Z")

</div>

Ok this might be stupid but i used to practice that in as2 and i am stuck with it in as3

Assume i have in library 3 items and the linkage names are: \_cl\_1, \_cl\_2 and \_cl\_3.  
Now i am reading from an xml the values 1,2,3. Or it could be more complex like 2,2,1,3,2,1,2

How can i create the corresponding objects using the xml values?

In as2 it was easy:  
attachMovie(“_cl_” + count, “_cl_” + getNextHighestDepth(), “”);  
// count is any variable passed

Many thanks in advance
