# \[mx2004\]HTML\_TXTClick2TriggerFlashFunction

**URL:** <https://forum.kirupa.com/t/mx2004-html-txtclick2triggerflashfunction/172275>\
**Category:** flash\
**Created:** [December 12, 2005, 10:51pm UTC](https://forum.kirupa.com/t/mx2004-html-txtclick2triggerflashfunction/172275 "2005-12-12T22:51:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![watcher](https://avatars.discourse-cdn.com/v4/letter/w/77aa72/32.png) [@watcher](https://forum.kirupa.com/u/watcher)\
**Post date:** [December 12, 2005, 10:51pm UTC](https://forum.kirupa.com/t/mx2004-html-txtclick2triggerflashfunction/172275/1 "2005-12-12T22:51:57Z")

</div>

Hi there,

i would like to ask if anybody knows how to do this:

I am loading HTML text into textfield using AS, text is nicely formatted, etc.  
Also objects as SWFs are nicely loaded using for ex.:

```auto

<img src='swf/testSWF.swf' id="mcTestSWF">

```

now lets say page just loaded, text nicely preloaded and i am reading, watching picture… mm… so good. okey. now i have a small problem with understanding one word in the sentence, lets say its called “GOGO”. So i just start guessing from the content, yet nothing comes to my mind… [monkey with banana?] so i open google and type it there to see what is it about… yeah. After half an hour of searching i get the meaning of the word and can continue further in the sentece.

Now i would like to do the following: create a system, where certain words will be highlighted(\<font color=“0xFF0000”\>GOGO\</font\>) AND when user clicks on such ugly word, small popup will be displayed, providing him/her with short description of the word.

consider: somebody who doesnt want to touch the FLA wants to add new content into the system - new HTML for ex. and inside that added text few more ugly words [with descriptions]

So, what i want to do again? : when user clicks “ugly word” [marked red], this will tell the flash to display popup with description of the word hidden in some XML file(i guess). The problem is obvious: how to say inside HTML -\> when “GOGO” text is clicked -\> send to flash: “this is me, GOGO, run function: displayPopup(“GOGO”);”. And for any other ugly word respectively, name-driven association.

Any ideas GREATLY apprecciated… 🙂
