这怎么可能。如何在 html embed costructor 中小于提供的嵌入宽度和高度?
<script type="text/javascript">
// For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection.
var swfVersionStr = "${version_major}.${version_minor}.${version_revision}";
// To use express install, set to playerProductInstall.swf, otherwise the empty string.
var xiSwfUrlStr = "${expressInstallSwf}";
var attributes = {};
attributes.id = "${application}";
attributes.name = "${application}";
attributes.align = "middle";
swfobject.embedSWF(
"${swf}.swf", "flashContent"
,"640", "360"
,swfVersionStr
,xiSwfUrlStr
// flashvars
,{}
// Params
,{
wmode:'direct'
,quality:'high'
,bgcolor:'#ffffff'
,allowscriptaccess:'always'
,allowfullscreen:'true'
,allownetworking:'all'
}
,attributes
);
</script>
动作脚本部分:
stage.addEventListener(Event.ENTER_FRAME, onFrame);
private function onFrame(event:Event):void
{
log('stage width,height',stage.width,stage.height,sv.videoWidth,sv.videoHeight);
}
输出:
stage width,height 320 276 720 404
如何让舞台全屏?
我错过了什么?