Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

seekbar posistion is not rearranging on Fullscreen mode in AS3?

New Here ,
Sep 14, 2015 Sep 14, 2015

i have two seekbar selector to select the In and Out timing in a video player progressbar

Everythig is working well in the normal mode , when am triggering Fullscreenmode, the In and Out selection is need to adjusted with the same selection in the normal, the same thing will happen when am get back to normal mode

am having following functions to draw a rectangle between the In and Out selection

private function scrubBarIsMovingIN(e:MouseEvent = null) {

    var distance:Number = (controls_mc.inpoint_mc.x - controls_mc.progressBar_mc.x); // = 67

    var percent:Number = distance / controls_mc.progressBar_mc.width;  // 67 /155 =

    //controls_mc.progressBar_mc.elapsed_mc.width = percent*100;

    var totalTime:Number = videoPlayerOSMF.duration;

    //updateDisplayTime(totalTime*percent, totalTime);

    var StartTime= updateToolTip(totalTime*percent, totalTime);

    trace("StartTime" + StartTime);

     this.controls_mc.inpoint_mc.addEventListener(MouseEvent.MOUSE_MOVE, function (_arg1:MouseEvent){

        cueCard.tip.showTip("Start :" + StartTime );

    });

    this.controls_mc.addChild(_seekIndicator);

    _seekIndicator.graphics.clear();

    _seekIndicator.graphics.beginFill(0xFF6600);

     _seekIndicator.graphics.drawRect(this.controls_mc.inpoint_mc.x+10, this.controls_mc.progressBar_mc.y,

    this.controls_mc.scrub_outpoint_mc.x-this.controls_mc.inpoint_mc.x, 12);

}

private function scrubBarIsMovingOUT(e:MouseEvent = null) {

    var distance:Number = (controls_mc.scrub_outpoint_mc.x - controls_mc.progressBar_mc.x); // = 67

    var percent:Number = distance / controls_mc.progressBar_mc.width;  // 67 /155 =

    //controls_mc.progressBar_mc.elapsed_mc.width = percent*100;

    var totalTime:Number = videoPlayerOSMF.duration;

    //updateDisplayTime(totalTime*percent, totalTime);

    var EndTime= updateToolTip(totalTime*percent, totalTime);

    trace("End time" + EndTime);

     this.controls_mc.scrub_outpoint_mc.addEventListener(MouseEvent.MOUSE_MOVE, function (_arg1:MouseEvent){

        cueCard.tip.showTip("End :" + EndTime );

    });

    this.controls_mc.addChild(_seekIndicator);

    _seekIndicator.graphics.clear();

    _seekIndicator.graphics.beginFill(0xFF6600);

     _seekIndicator.graphics.drawRect(this.controls_mc.scrub_outpoint_mc.x+10, this.controls_mc.progressBar_mc.y,

    this.controls_mc.inpoint_mc.x-this.controls_mc.scrub_outpoint_mc.x, 12);

}

but if i selected 00.10 as In and 02.10 as Out on normal mode, the same will be selected in the Fullscreen mode, it happen simultaneously for both Fullscreen and Normalscreen

i tried to call the same functions with the null as in the below function

private function _fullScreenEvent(_arg1:FullScreenEvent){

            if (event.fullScreen){

                this.fullScreen = true;

                this.scrubBarIsMovingIN(null);

                this.scrubBarIsMovingOUT(null);

            }

            else

            {

                this.scrubBarIsMovingIN(null);

                this.scrubBarIsMovingOUT(null);

            }

        }

please refer attached images

Normal screen :

Normal-screen.png

Fullscreen :

Full-screen.png

TOPICS
ActionScript
181
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation