# Targeting labeled frame from xml

**URL:** <https://forum.kirupa.com/t/targeting-labeled-frame-from-xml/303774>\
**Category:** flash\
**Created:** [January 26, 2010, 8:36pm UTC](https://forum.kirupa.com/t/targeting-labeled-frame-from-xml/303774 "2010-01-26T20:36:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luigi\_Vercotti](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@Luigi\_Vercotti](https://forum.kirupa.com/u/Luigi_Vercotti)\
**Post date:** [January 26, 2010, 8:36pm UTC](https://forum.kirupa.com/t/targeting-labeled-frame-from-xml/303774/1 "2010-01-26T20:36:17Z")

</div>

Hello guys  
how do I target the labeled frame in my main timeline.  
this is my xml code

> \<?xml version=“1.0” encoding=“UTF-8”?\>  
> \<menu color=“0x000000” font=“Tahoma” size=“20” rolloverColor=“0xFF0033” clickColor=“0xFF0033” \>  
> \<item label=“1” url=“[http://flepstudio.org](http://flepstudio.org)” target=“\_blank” /\>  
> \<item label=“2” url=“[http://flepstudio.org](http://flepstudio.org)” target=“\_blank” /\>  
> \<item label=“3” url=“[http://flepstudio.org](http://flepstudio.org)” target=“\_blank” /\>  
> \<item label=“4” url=“route” /\>  
> \<item label=“5” url=“[http://flepstudio.org](http://flepstudio.org)” target=“\_blank” /\>  
> \</menu\>  
> this is my \*.\*as code

> private function checkURL(m:MovieClip):void  
> {  
> if(menu\_array[m.id].url!=null)  
> {  
> var request:URLRequest=new URLRequest(menu\_array[m.id].url);  
> navigateToURL(request,menu\_array[m.id].target);  
> }  
> else  
> {  
> trace(“Add actions here”);  
> }  
> }  
> can you please modify that for me please 😉
