Javascript to flash communication

后端 未结 6 956
清歌不尽
清歌不尽 2021-02-06 05:59

I am trying to call a Actionscript function from javascript but I am having problems in Internet Explorer. I am using Swiff.remote in mootools 1.2.1 to call the actionscript fun

6条回答
  •  -上瘾入骨i
    2021-02-06 06:31

    Wanted to post this answer, as this may be what's causing problems for others, obviously this is not causing your problem. Still looking into a solution for your issue.

    From the MooTools Docs: http://mootools.net/docs/Utilities/Swiff Note:

    The SWF file must be compiled with the ExternalInterface component. See the Adobe documentation on External Interface for more information.

    Action Script 2.0

    import flash.external.*;
    

    Action Script 3.0

    package com
    {
       import flash.external.ExternalInterface;
       public class Main 
       {
       }
    }
    

提交回复
热议问题