1 Reply Latest reply on Jul 21, 2006 5:15 AM by Kishan M V

    SoundEffect - AS3 equivalent instead of mxml

      Instead of using mxml for sound effects, I need to use an as3 equivalent. Here's what I have:

      import mx.effects.SoundEffect;
      [Embed(source="C:/FLEX_PROJECTS/photos/bin/closeWin-Mark_E_B-8077_hifi.mp3")]
      private var dropSoundEffex:Class;
      private var dropSound:SoundEffect = new SoundEffect();
      dropSound.duration = false; <--1120 Access of undefined property dropSound.
      dropSound.loops = 0;
      dropSound.source = dropSoundEffex;