Post Reply 
 
Thread Rating:
  • 32 Votes - 3.19 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Flash Video Player Centering Video Issues using Dreamweaver
03-05-2009, 03:11 PM
Post: #1
Question Flash Video Player Centering Video Issues using Dreamweaver
I’m having an issue were we are creating webpage using Dreamweaver to play different sized videos (640x480 to 640x270 etc)… like YouTube.com. We are calling the flash video from the flash server. Right now out player shell forces the video to fill the area thus stretching the videos that are different aspects than the player area. Any suggestions with the code?

Thanks in advance- Brian


Here is the link to the tutorial for customizing the Dreaweaver Flash Video Player: http://www.adobe.com/devnet/flash/articl...print.html

There is not a problem in customizing the skin look…the issue is centering different sized videos in a player that is a fixed size. This is the flash code used in the tutorial:

function getSkinInfo():Object {
var res:Object = new Object();
res.video = {x:10, y:10, w:-20, h:-47};
res.mode = "disable"; //or "hide"
res.playBtn = {x:10, y:-30};
res.pauseBtn = {x:50, y:-30};
res.stopBtn = {x:90, y:-30};
res.seekBar = {x:135, y:-33, w:-229};
res.buffering = {x:136, y:-27, w:-231};
res.volumeMute = {x:-88, y:-31};
res.volumeBar = {x:-66, y:-33, l:51, type:"horizontal"};
res.autoHide = false;
res.bgColor = 0xFFFFFF;
res.uiMode = "stretch"; // or "center", "TL"
return res;
}
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: