# Scope issue

**URL:** https://forum.kirupa.com/t/scope-issue/187066
**Category:** flash
**Created:** [April 26, 2006, 2:19pm UTC](https://forum.kirupa.com/t/scope-issue/187066 "2006-04-26T14:19:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kapstan](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@kapstan](https://forum.kirupa.com/u/kapstan)
#### Post date: [April 26, 2006, 2:19pm UTC](https://forum.kirupa.com/t/scope-issue/187066/1 "2006-04-26T14:19:18Z")

</div>

hi there,  
i have an interesting issue that i have been working on for what seems like an eternity now but can’t seem to make any headway… i have an HTML page with flashobject making calls to SWFs to load in id’d divs… in cases where you click a button on a nav bar, the onRelease event creates a new flashobject and writes it to the appropriate div…

however, there are certain cases where after writing the swf from the nav bar click… i need to load XML data into another blank SWF (consisting of two dynamic textfields with embedded fonts)…

for some reason, if i write the data from the XML at a global level into those dynamic textfields, it works fine… however I need to change the data depending upon clicks from the Nav bar (basically the content you see is based on the click in the navbar) so if i add any sort of global variable which would notify a switch or if…then block to direct the correct XML data into the dynamic textfields… all i get returned is the variable name in the textboxes…

i know this is confusing so if anyone would like to see the code, please let me know.

any help is appreciated.

thank you,  
-Ian
