Skip to main content
Participating Frequently
May 3, 2010
Question

How to change player dimension?

  • May 3, 2010
  • 2 replies
  • 448 views

I'm sorry, but I wanna change the dimension of the built-in flash player that we get from installing the FMS.. can i do that?
I need it to fit my web in the center, and on the left & right side there's bar for ads..

anyway, I embed my web with the videoPlayer.swf I got from this folder:

"C:\Program Files\Adobe\Flash Media Server 3.5\samples\videoPlayer\swfs"

then I checked the source folder and i realized that it's builed with Flex, and I'm not proficient in Flex.

After that I tried to decompile the .swf file using sothink swf decompiler and recompile it again, but it gives me error message in Adobe Flash CS3 Professional.

Any idea guys?

TIA,

-shenli-

    This topic has been closed for replies.

    2 replies

    Participant
    May 11, 2010

    I'm not sure if this helps - here's the code I've used to resize the player... based upon the src media:

    private function dataHandler(e:MetadataEvent){
                var info:Object = e.info;
                var player:* = this.getChildByName("player");
                player.width = info.width;
                player.height = info.height;
                player.x = (stage.stageWidth - player.width) / 2;
                player.y = (stage.stageHeight - player.height) / 2;

            }

    Participating Frequently
    May 4, 2010

    I think if you want to use same videoplayer source then best way would be to modify it using Flex Builder. You can just import existing project and change few settings in Player.as as per your needs and then recompile and use new VideoPlayer.swf in your embedded environment.