# ExternalInterface.addCallback

**URL:** <https://forum.kirupa.com/t/externalinterface-addcallback/269221>\
**Category:** Uncategorized\
**Created:** [August 25, 2008, 12:38am UTC](https://forum.kirupa.com/t/externalinterface-addcallback/269221 "2008-08-25T00:38:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BenBart](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@BenBart](https://forum.kirupa.com/u/BenBart)\
**Post date:** [August 25, 2008, 12:38am UTC](https://forum.kirupa.com/t/externalinterface-addcallback/269221/1 "2008-08-25T00:38:38Z")

</div>

```auto
ExternalInterface.addCallback("updateMenu", this, updateSection);
    
    
    function updateSection(newSection){
        currentSection = newSection;
    }

```

I have a text box that uses the variable “currentSection”. It doesn’t change when I click the button in HTML that calls the function. Anyone know what I’m doing that’s wrong? Is there a working example of this anywhere?

I need a callback of some kind so I can update my flash Nav. I don’t care if it’s externalinterface or now.
