Fill a textarea from a flash

Hi,

I  have an html page in which i have a flash object ( a map) and a text area.

I want to be able when i push a flash button, to fill the text area with some text.

The flash is ready, is a collection of seperatly buttons  .

Any help

Thanks


LVL 12
Panagiotis Sweb developer - designer Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
RoonaanConnect With a Mentor Commented:
When you run Flash 8 you can use in actionscript:

on(Press) {
  import flash.external.ExternalInterface;
  ExternalInterface.call ("myFlashFunction","myValue");
}

Then in javascript you can use:

<script type="text/javascript">
function myFlashFunction(myVar) {
  alert(myVar);
}
</script>

-r-
0
 
0h4crying0utloudCommented:

Just in case you need more info on how to fill the textarea from that javascript:

<script type="text/javascript">
function myFlashFunction(myVar) {
  document.getElementById("theTextAreaID").value = myVar;
}
</script>
0
All Courses

From novice to tech pro — start learning today.