-2
我正在尝试为我的媒体播放器制作自定义全屏模式。它基本上分配内容到调整大小的影片剪辑和显示。但是,当涉及到特定内容时,无法以全屏模式显示。其实在默认情况下没有问题,但只在FS中。这是激活FS模式的代码。加载程序内容无法在自定义分辨率中显示
function FSMode(e:MouseEvent):void
{
fullScreenToolbar = new ExitFSClass();//this exits full screen
_coordinate.x = contentLdr.content.x;
_coordinate.y = contentLdr.content.y;
_width = contentLdr.content.width;
_height = contentLdr.content.height;
contentLdr.content.x = -250;
contentLdr.content.y = -135;
this.setChildIndex(contentLdr, this.numChildren - 1);
if(contentTypArr[currentCategory] === "animation")
{
addChild(fullScreenToolbar);
this.setChildIndex(fullScreenToolbar, this.numChildren - 1);
if(Capabilities.screenResolutionX >= 1920)
{
contentLdr.content.width = 1800;
contentLdr.content.height = 1012.5;
}
else
{
contentLdr.content.width = Capabilities.screenResolutionX;
contentLdr.content.height = Capabilities.screenResolutionY;
}
fullScreenToolbar.x = 0;
fullScreenToolbar.y = 965;
fullScreenToolbar.width = contentLdr.content.width;
fullScreenToolbar.addEventListener(MouseEvent.CLICK, openToolbar);
fullScreenToolbar.buttonMode = true;
}
}
为什么有些内容无法显示?我无法看到相关问题或与代码冲突。
当您不使用全屏时,不要谈论全屏。更准确地描述问题并提出问题。为什么使用'setChildIndex(fullScreenToolbar,this.numChildren - 1)',当一个简单的addChild()做同样的事情时? – BotMaster
嗯...也许'addChild'不起作用?这是我能处理的唯一方法吗?此外,如果内容以全屏显示(字面意思),它是全屏幕,完全停止(字面上)。 – coner
为了在这里得到帮助,你确实明白,你说的任何话都必须清楚易懂,对吗?现在因为在AS3中有全屏模式这样的事情,并且你在这里实现了一个不相关的“定制”全屏,你不认为这个问题应该在你的问题中始终明确吗?如果你没有什么大不了的话,你可能不会得到任何答案。 – BotMaster