# Labels not targeting

**URL:** <https://forum.kirupa.com/t/labels-not-targeting/196298>\
**Category:** flash\
**Created:** [August 7, 2006, 2:50pm UTC](https://forum.kirupa.com/t/labels-not-targeting/196298 "2006-08-07T14:50:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AgentOrange](https://avatars.discourse-cdn.com/v4/letter/a/edb3f5/32.png) [@AgentOrange](https://forum.kirupa.com/u/AgentOrange)\
**Post date:** [August 7, 2006, 2:50pm UTC](https://forum.kirupa.com/t/labels-not-targeting/196298/1 "2006-08-07T14:50:16Z")

</div>

Man am I having a day of grief. I’m trying to target labeled frames using a simple gotoAndStop command but for some bizzare reason the code doesn’t recognise labels only frames. Here’s a chunk.

var varPageLocation;  
var varPageLocation = ‘WhoWeAre’;  
switch (varPageLocation) {  
case ‘Home’ :  
gotoAndPlay(2);  
trace(‘Home’);  
break;

Anyone know whay this may be?
