代码之家  ›  专栏  ›  技术社区  ›  janasainik

如何在flex 3中嵌入音频?

  •  0
  • janasainik  · 技术社区  · 14 年前

    我想在用户点击flex 3中的按钮时播放一个声音。我的flex应用程序将逐个生成图像。对于每个图像,一个声音应该出现在背景中。有什么想法吗?提前谢谢

    2 回复  |  直到 14 年前
        1
  •  0
  •   Glycerine    14 年前

    你应该能写这样的东西:

    [Embed(source="myfile.mp3")]
    [Bindable] //Not required. Just an example of using multiple meta tags.  
    public var soundCls:Class;
    

    这将使您能够通过类名引用文件

        2
  •  0
  •   Cornel Creanga    14 年前

    Adobe创建的官方文档非常好。。你可以找到链接 here . 您还可以找到代码示例。

    推荐文章