0 Replies Latest reply on Sep 30, 2010 4:57 AM by mobileG

    Flex SDK4 - import built in class error

    mobileG

      How are you?

       

      I am writing a very simple class, which I am trying to compile with ./mxmlc found in Flex SDK4. However I am getting the below errors, it seems like the built in classes cannot be found. I am not sure why the FLVPlayback or VideoPlayer or VideoElement components do not get included. I checked the SVN, and I cannot find any reference to these components.

       

      1) All I am trying to do is to get Video to display, using the Flex SDK4 compiler with AS3 files. Why the elements do not import? and What elements could I use for this to work?

       

      package {
           
           import flash.display.Sprite;
           import fl.video.FLVPlayback;
           
           public class Welcome extends Sprite {
      
                
                private var _video:FLVPlayback;
                private var _videoPath:String = "InsideJob.f4v";
                
                public function Welcome():void {
                     build();
                }
                
           protected function build():void {
                     _video = new FLVPlayback();
                     _video.play(_videoPath);
                     var _place = new Position(200, 500);
                     _video.x = _place.xvalue();
                     _video.y = _place.yvalue();
                     stage.addChild(_video)
                }
                
                
           }
           
      }
      

       

       

      ERRORS -----

       

       

      --FLVPlayback

      col: 22 Error: Type was not found or was not a compile-time constant: FLVPlayback.

       

      private var _video:FLVPlayback;

       

      col: 17 Error: Call to a possibly undefined method FLVPlayback.

       

      _video = new FLVPlayback();

       

       

       

      --Spark

       

      col: 25 Error: Definition spark.components:VideoElement could not be found.

       

      import spark.components.VideoElement;

       

      col: 22 Error: Type was not found or was not a compile-time constant: VideoElement.

       

      private var _video:VideoElement;