GeckoFX-45执行JavaScript功能

时间:2016-05-11 13:11:11

标签: geckofx

调用Navigate和AutoJSContext之间有什么不同?

我尝试使用两者,但只是第一种方式。

HTML页面

class MaintenanceForm(ModelForm):
    def __init__(self, *args, **kwargs):
        super(MaintenanceForm, self).__init__(*args, **kwargs)
        self.fields['Impact'].choices = list(MaintenanceType.objects.values_list('id', 'Type'))


    class Meta:
        model = Maintenance

C#

  <script src="shumway/shuobject.js"></script>
  <script>
     var swf;
    // Create/embed SWF movie.
    shuobject.embedSWF('ExampleFla.swf', 'mainSWF', 800, 512, '9,0,10', null, {}, {}, {}, function (e) {
        swf = document.getElementById("mainSWF");
    });

  function Mess(){
    var swf1 = document.getElementById("mainSWF");
    swf1.setFlashVars("VarText1=1"); // It's External Interface with Flash  and   if it's string comments AutoJSContext also will work  
    alert("Hello");
  }

0 个答案:

没有答案