views:

9

answers:

0
<script type="text/javascript">


        function recieveTextFromFlash(Txt){

    document.getElementById('htmlText').value = Txt;    
}



  Shadowbox.init({

    handleOversize: "resize",
           overlayOpacity: 0.6,
           skipSetup: true



           });

  function openShadowbox(content, type){

        Shadowbox.open({
            content: content,
            player: type,
            title: "Welcome"


                       });


  };

<a href="helpdeskApp_three.swf" rel="shadowbox;height=500;width=800">My Movie</a>
<input type="button" name="sendToFlash" id="sendToFlash" value="Send Text to Flash" onclick="getElelmentById('flash').sendTextFromHtml(htmlText.value); document.getElementById('htmlText').value=''"/>

So I got an example of sending text to flash from html and am trying to integrate it into my setup, which is into a shadowbox overlay swf.

the is from the example I got and it gets the id=flash from where the example loads its flash. But in my case the flash is in the shadowbox, so I dont know what to refer to.

All I want is a field that allows a user to submit text, and when the submit button is pressed it will open the shadowbox along with sending the text to the swf.