Passing variable FROM flash to HTML/php

后端 未结 2 1446
情深已故
情深已故 2021-01-17 01:54

I was hoping maybe someone could provide some insight on a problem I\'m having a tough time deciding how to solve.

I have a rather simple flash application users can

2条回答
  •  悲哀的现实
    2021-01-17 02:26

    You could actually invoke an ExternalInterface command to populate a hiddenfield in your HTML coming from your SWF component.

    if (ExternalInterface.available) 
    {
      var js:String = "yourJavaScriptFunction";
      var valToPass:String;
      ExternalInterface.call(js(valToPass));
    }
    

    And in your HTML page, you write a javascript function:

    
    
                                     
                  
提交回复
热议问题