[mx2004]HTML_TXTClick2TriggerFlashFunction

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.:


<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… :slight_smile: