1 Reply Latest reply on Oct 24, 2007 8:04 AM by acorcutt

    Extedning the VideoDisplay component to enable smoothing

    JaxonRice
      Hi

      Does anyone know if there is a way to extend the VideoDisplay flex component and access the video.smoothing property of the video class?

      Thanks in advance
        • 1. Re: Extedning the VideoDisplay component to enable smoothing
          acorcutt Level 1
          package com.my.controls
          {
          import mx.controls.VideoDisplay;
          import mx.core.mx_internal;
          import mx.events.VideoEvent;
          import mx.controls.Alert;

          use namespace mx_internal;

          public class SmoothVideoDisplay extends VideoDisplay
          {
          public function SmoothVideoDisplay()
          {
          super();
          }


          //call this when video is loaded ready eg. put myvid.enableSmoothing() in onready event
          public function enableSmoothing():void{
          videoPlayer.smoothing = true;
          videoPlayer.deblocking=0;//auto
          }
          }
          }