1 Reply Latest reply on May 30, 2006 11:36 AM by skrichten

    Scaling FLVPlayback

    wesohaire
      Hey guys, I'm working on a YouTube type video player which you can view here:
      http://wesohairedesigns.com/clients/one_stop/test/fo/flashobject.html

      I need the fullscreen version (click the box at bottom right) to scale the video like it is but without scaling the controls(kinda like YouTube). I'm a fairly competent user (since Flash 4) so could anyone point me in the right direction? Thanks!
        • 1. Scaling FLVPlayback
          skrichten
          I've done this and it can be a little tricky/ugly. The FLV playback component does not expose the skin in its API, so you have to kind of hack it. Here is how you can get a reference to the skin itself...

          MovieClip(player).skin_mc.layout_mc;

          Where player is a reference to your flvplayback instance. from there you can reference all the skin elements as you see them named in your skin file... for example playpause_mc, volumeBar_mc etc... So what I did is based on certain events, i would move and scale the skin elements as needed.

          Steve Krichten