# Global Variables problem with PopUp Caption

**URL:** https://forum.kirupa.com/t/global-variables-problem-with-popup-caption/186932
**Category:** flash
**Created:** [April 25, 2006, 1:45pm UTC](https://forum.kirupa.com/t/global-variables-problem-with-popup-caption/186932 "2006-04-25T13:45:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![artISgarbage](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@artISgarbage](https://forum.kirupa.com/u/artISgarbage)
#### Post date: [April 25, 2006, 1:45pm UTC](https://forum.kirupa.com/t/global-variables-problem-with-popup-caption/186932/1 "2006-04-25T13:45:00Z")

</div>

Greetings everybody…

I have run into a problem which I’m sure is mind-numbingly simple to fix. I have a SWF map with which you can mouse over certain regions and display a caption bubble with the regions information. At first, I ran into a problem using a scrollbar for the map and creating a startDrag function for the caption… so I decided to axe that idea and simply use a CSS scroller on the map so that the captions would work, and then create an onPress function to send the details variables (thumbnail, (all child nodes from xml), etc…)

Okay… so that’s where i’m at now… the map SWF with captions works:  
[http://www.chavezart.net/community/kirupa/swf\_LGLC\_content.swf](http://www.chavezart.net/community/kirupa/swf_LGLC_content.swf)  
But, as soon as I put it on a HTML page… the captions start displaying ‘undefined’ in all of the text fields. I am guessing that there is something wrong with how I am dynamically defining the variables in my functions.

So that is my primary problem… any insight would be tremendously appreciated. The .fla, .swf, .xml, and sample .html file can be downloaded in the following .zip:  
[http://www.chavezart.net/community/kirupa/forKirupa.zip](http://www.chavezart.net/community/kirupa/forKirupa.zip)

Additionally, I was wondering if anybody could refer me to a good tutorial or sample FLA about using LocalConnection Objects.

Many thanks everybody!
