2 Replies Latest reply on Jan 27, 2014 5:28 AM by robdillon

    Please help to solve following error

    locateganesh

      Hi,

       

      I am using Flash cs6 and ActionScript 3.0. I want to play a video when first video completes second video should immedially start.

      But I am getting an error

      Scene 1, Layer 'Layer 2', Frame 1, Line 31119: Access of possibly undefined property COMPLETE through a reference with static type Class.

      The code is as follows:-

       

      import fl.video.*;

      my_FLVPlybk.source = "video1.flv";

      my_FLVPlybk.addEventListener(VideoEvent.COMPLETE, complete_listener);

      function complete_listener(eventObject:VideoEvent):void {

          if (my_FLVPlybk.source == "video2.flv") {

              my_FLVPlybk.play("video1.flv");

          }

      };

       

       

      Thanks,

       

      Ganesh Yadav