Показать сообщение отдельно
Старый 12.07.2008, 21:10
wvxvw вне форума Посмотреть профиль Отправить личное сообщение для wvxvw Найти все сообщения от wvxvw
  № 6  
Ответить с цитированием
wvxvw
Modus ponens
 
Аватар для wvxvw

модератор форума
Регистрация: Jul 2006
Адрес: #1=(list #1#)
Сообщений: 8,049
Записей в блоге: 38
Код:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JavaScreep go fullScreen</title>
<script type="text/javascript" src="../jsc/swfobject.js"></script>
<script type="text/javascript">
function goFullScreen(foDiv)
{
	foDiv.style.position = "absolute";
	foDiv.style.zIndex = 100;
	foDiv.style.top = "0px";
	foDiv.style.left = "0px";
	if( typeof(window.innerWidth) == "number") {
		foDiv.style.width = window.innerWidth + "px";
		foDiv.style.height = window.innerHeight + "px";
	} else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		foDiv.style.width = document.documentElement.clientWidth + "px";
		foDiv.style.height = document.documentElement.clientHeight + "px";
	} else if(document.body && (document.body.clientWidth || document.body.clientHeight) ) {
		foDiv.style.width = document.body.clientWidth + "px";
		foDiv.style.height = document.body.clientHeight + "px";
	}
}
function onFlashFullScreen()
{
	var fDiv = document.getElementById("flashDiv");
	goFullScreen(fDiv);
}

swfobject.embedSWF("fullscreentest.swf", "flashDiv", "100", "100", "9.0.0", "", "allowScriptAccess", "always");
</script>
</head>
<body style="text-align:center; margin-right:auto; margin-left:auto; background-color:#666600">
	<div id="flashDiv" style="width:100px; height:100px;">
		<h1>Alternative content</h1>
		<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
	</div>
</body>
</html>
Код:
import flash.external.ExternalInterface;
Stage.align = '';
var test:TextField = this.createTextField('test', 0, 0, 0, Stage.width, Stage.height);
var tf:TextFormat = new TextFormat();
tf.font = '_sans';
tf.size = 22;
tf.align = 'center';
tf.color = 0xFFFFFF;
test.background = true;
test.backgroundColor = 0x0000FF;
test.selectable = false;
test.text = '\rFullScreen\rTEST';
test.setTextFormat(tf);
onMouseDown = function():Void
{
	ExternalInterface.call('onFlashFullScreen');
	test.text = '\rHi!';
	test.setTextFormat(tf);
}
А самому написать уже не модно стало?
__________________
Hell is the possibility of sanity