PDA

View Full Version : set movie width/height via css?


halfasleeps
11-04-2008, 04:56 PM
I would like to set the movie width and hieght based off of a css file.


when you embed using javascript you have set set the width and height manually:

if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) { // if we've detected an acceptable version
// embed the flash movie
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,45,0',
'width', '269',
'height', '380',
'src', 'VideoOverlay/trans_test',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'transparent',
'devicefont', 'false',
'id', 'VideoOverlay',
'bgcolor', '#ffffff',
'name', 'VideoOverlay',
'menu', 'false',
'allowScriptAccess','sameDomain',
'allowFullScreen','true',
'movie', 'VideoOverlay/trans_test',
'salign', '',
'FlashVars','overlayVideo=simon_g.flv'
); //end AC code
}
}


Does anyone know a way I can make it determed the width and height based from a css file?

#VideoOverlay {
height: 380px;
width:269px;
}


Thanks!