3 Replies Latest reply on Jul 2, 2010 12:24 AM by Ganesh_Palwe

    NetStream and Flash Player 10.1

    andrepazleal Level 1

      I´m into LMS courses, and use a lot until today the combination of flv´s for characters and loadSound for make them talk. Until today because after this week I´ve update my flash to 10.1 and boom, all my courses now are crashing in any browser that have the update. I already noted that the problem is the netStream. Here´s my current Actions just to quote, I´ve been using this since version 9 of the flash player with no problems:

       

      var nc:NetConnection = new NetConnection();

      nc.connect(null);

      var ns:NetStream = new NetStream(nc);

      character.attachVideo(ns);

       

      var my_sound:Sound = new Sound();

      my_sound.onLoad = function(success:Boolean)

      {

          if (success)

          {

              ns.play("character_going_talk.flv");

              ns.onStatus = function(info:Object)

              {

                  if(info.code == 'NetStream.Play.Stop')

                  {

                      ns.play("character_talk.flv");

                  }

              }

          }

      };

       

      function content_next()

      {

          character_rest();

          ns_content.play("content_next.flv");

          ns_content.onStatus = function(info:Object)

          {

              if(info.code=='NetStream.Play.Stop')

              {

                  ns_content.play("content_next.flv");

              }

          }

      }

       

      function character_rest()

      {

          stopAllSounds();

          ns.play("character_going_rest.flv");

          ns.onStatus = function(info:Object)

          {

              if(info.code == 'NetStream.Play.Stop')

              {

                  ns.play("character_rest.flv");

              }

          }

      }