0 Replies Latest reply on Aug 30, 2011 10:43 AM by Barno7

    background music (Mobile)


      I would like to play a background music for any application that does not interrupt the exchange of views, and that does not happen again if I go back to the view where I didplay.

      I inserted this code in the mxml file:

      <s:TabbedViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009"

        xmlns:s="library://ns.adobe.com/flex/spark" splashScreenImage="@Embed('assets/splashScreen.jpg')" applicationDPI="320" initialize="startSound(event)">

      <fx:Style source="iChing.css"/>



      import mx.events.FlexEvent;

      import Suoni.Suoni;



      private var suonoBackground:Suoni;

      protected function startSound(event:FlexEvent):void




      suonoBackground = new Suoni();

      suonoBackground.setSound = "assets/sound/ichingBackground.mp3";

      suonoBackground.addEventListener("soundLoad", soundLoad);


      function soundLoad(event:Event):void {

           suonoBackground.removeEventListener("soundLoad", soundLoad);






      the sound correctly, but when I navigate between views, or do I make an animation (usingcode), the sound is noisy ....

      you have any suggestions?