Frame label Goto variable frame label defined in xml

Ideally i would like to define a frame label in my xml file as a link to a thumbnail in an xml image menu.
create a variable for the frame label then define it in xml.
for ex.

<photo><image=“image.jpg” frame=“framelabel”></photo>

Sort of like a gotoAndStop(“framelebel”)

not sure how clear this is but any help would be great.