1 Reply Latest reply on Oct 9, 2012 2:32 PM by ggaarde2

    Adjust Y pos of Flash video control strip (skin)

    ggaarde2

      Hi

       

      I am in need to move the video control strip upwards so it clears my caption in the video shown below.

      The skin is a swf, and normally if I import a swf to to another fla as an outside source I can adjust xpos and ypos with action script.

      I am using AS2 and would think this can be controlled in the flv playback component. But I can not find out how.

      Can you help?

       

       

      Screen Shot 2012-10-04 at 12.18.38 PM (2).png

       

      Thank you on beforehand!

       

      ggaarde2

        • 1. Re: Adjust Y pos of Flash video control strip (skin)
          ggaarde2 Level 1

          Hi Again!

           

          Is there anybody out there?

           

          Meanwhile I have looked into creating a dublicate skin and tried to edit that.

           

          There is not much code for the fla. Here it is:

           

          ---

           

           

           

           

          // a lot of the code below is commented out.  This is because the

          // we are just setting those values to the default values anyways.

          // This gives you an idea of how little code you might have to write

          // if you did your own skin!  But we leave the commented code in

          // to give you an idea of what you would need to do if you wanted

          // to customize the skin.

           

           

          // Defaults:

          // * layout_mc.foo_mc.mc defaults to foo_mc

          // * for seek bar, layout_mc.foo_mc.handle_mc defaults to handle_mc

          // * layout_mc.foo_mc.anchorLeft defaults to true, unless anchorRight

          //   is explicitly set to true and then it defaults to false

          // * layout_mc.foo_mc.anchorRight defaults to false

          // * layout_mc.foo_mc.anchorTop defaults to false

          // * layout_mc.foo_mc.anchorBottom defaults to true, unless anchorTop

          //   is explicitly set to true and then it defaults to false

           

           

          // minimum width and height of video recommended to use this skin,

          // leave as undefined or <= 0 if there is no minimum

          layout_mc.minWidth = 155;

          layout_mc.minHeight = 60;

           

           

           

           

          // background for controls, some commented out because are defaults

          layout_mc.bg1_mc.mc = chrome_mc;

          layout_mc.bg1_mc.anchorLeft = true;

          layout_mc.bg1_mc.anchorRight = true;

          //layout_mc.bg1_mc.anchorBottom = true;

           

           

          // playpause_mc just using all defaults, so no code needed

          //layout_mc.playpause_mc.mc = playpause_mc;

          //layout_mc.playpause_mc.anchorLeft = true;

          //layout_mc.playpause_mc.anchorBottom = true;

           

           

          // volumeMute_mc just using all defaults, so no code needed

          //layout_mc.volumeMute_mc.mc = volumeMute_mc;

          layout_mc.volumeMute_mc.anchorRight = true;

          //layout_mc.volumeMute_mc.anchorBottom = true;

           

           

          // seekBar_mc using mostly defaults, but setting

          // anchorRight to true

          //layout_mc.seekBar_mc.mc = seekBar_mc;

          layout_mc.seekBar_mc.anchorLeft = true;

          layout_mc.seekBar_mc.anchorRight = true;

          //layout_mc.seekBar_mc.handle_mc = seekBarHandle_mc;

          //layout_mc.seekBar_mc.progress_mc = _parent.seekBarProgress_mc;

           

           

          // bufferingBar_mc using mostly defaults, but setting both anchorLeft

          // and anchorRight to true and setting fill_mc

          //layout_mc.bufferingBar_mc.mc = bufferingBar_mc;

          layout_mc.bufferingBar_mc.anchorLeft = true;

          layout_mc.bufferingBar_mc.anchorRight = true;

          //layout_mc.bufferingBar_mc.fill_mc = _parent.bufferingBarFill_mc;

           

           

          ---

           

           

           

          I have tried to add:

          layout_mc.ypos = -100;   and layout_mc._y = -100;

          to my ClearOverPlaySeekMute_GG_1.fla

          Did not work.

           

          Also tried inside Fla with the flv playback component to add

          _y=-100

          That moved the whole component up.

          Then I tried to address the swf from there:

          layout_mc._y = -100;

          Did not work.

           

          Then I tried to address the swf from there:

           

          ClearOverPlaySeekMute_GG_1.swf._y = -100;

           

          Also did not work.

           

          What is it that decides the default position of the componet?

           

          I am out of ideas.

           

          ANYONE?

          kglad or Ned Murphy?

           

          Thanks on beforehand

           

          ggaarde2