# Help Needed - Simple XML function..\[Flash8\]

**URL:** <https://forum.kirupa.com/t/help-needed-simple-xml-function-flash8/259024>\
**Category:** flash\
**Created:** [April 30, 2008, 2:45pm UTC](https://forum.kirupa.com/t/help-needed-simple-xml-function-flash8/259024 "2008-04-30T14:45:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![korpela2](https://avatars.discourse-cdn.com/v4/letter/k/8e8cbc/32.png) [@korpela2](https://forum.kirupa.com/u/korpela2)\
**Post date:** [April 30, 2008, 2:45pm UTC](https://forum.kirupa.com/t/help-needed-simple-xml-function-flash8/259024/1 "2008-04-30T14:45:35Z")

</div>

Hi

I’ve been wondering for a while now why this function I have created won’t work.  
Any help would be much appreciated

I’m loading text from an XML file into a dynamic text-box in my swf.

I then created a function:

[COLOR=Blue]\_gloabal[/COLOR].signalCheck = [COLOR=Blue]functionCOLOR=Black[/COLOR][/COLOR][COLOR=Black] [/COLOR]{

```
          [COLOR=Blue]if [/COLOR](mysignal ==[COLOR=Green] "1"[/COLOR]) {

```

[COLOR=Gray]//mysignal is a dynamic text-box where “1” is loaded from XML[/COLOR]  
[COLOR=Blue]gotoAndPlay/COLOR;  
}  
}

and added this function to a button on the same frame:

```
          [COLOR=Blue]on[/COLOR] ([COLOR=Blue]release[/COLOR]){
                      signalCheck();

```

}

The XML works fine, as the number “1” is displayed inside in the swf. However, the function doesn’t see “mysignal” as a typical dynamic text-box as it does not respond to it.

Could anybody tell me a work-around for this, or a method that responds to the actual text sent from XML.

Much obliged…
