ActionScript2
Stage.align="LT";
Stage.scaleMode = "noScale";
Stage.showMenu = false;
var TF:TextFormat = new TextFormat();
sx = Stage.width;
TF.letterSpacing = -3.000000E-001;
if (_root.isContent == "Y"){
	//tit_txt.text = "<a href=" + _root.titleLink + ">" + _root.titleText + "</a>";
	tit_txt.htmlText = "<a href=\'" + _root.titleLink + "\'>" + _root.titleText + "</a>";
	tit_txt.setTextFormat(TF);
	detail_txt.htmlText = " <a href=\'" + _root.cateLink + "\'>" + _root.detailText + "</a>" +  " | "
						 + _root.dateText;
	tit_txt.autoSize = true;
	detail_txt.autoSize = true;
	/* if(tit_txt._width>(sx-10)){
		exc = (((sx-10)/tit_txt._width+20))*100-1;
		tit_txt._yscale = tit_txt._xscale=exc;
		tit_txt.autoSize = true;
		tit_txt._x = 4;
		//tit_txt.autoSize = true;
	}
	tit_txt._x = (int(((sx-10)-tit_txt._width)/2))+8
	detail_txt._x = (int(((sx-10)-detail_txt._width)/2))+8 */
}else{
	tit_txt.htmlText = _root.titleText;
	tit_txt.setTextFormat(TF);
	detail_txt._visible = true;
}


skin.html
<head>
	...
<script language="javascript"  src="./images/flashWrite.js" type="text/javascript">
	...
</head>
	...
<div class="titleWrap">
<script language="javascript">
flashWrite("./images/title.swf","650","50","title_flash","#ffffff","isContent=Y
	&titleText=* &titleLink=
	&detailText=
	&dateText=&cateLink=");
</script>
	...


참조 : http://www.panopt.net/tt/171

'소스 > ' 카테고리의 다른 글

Numeric HTML entity  (0) 2011.07.02
SyntaxHighlighter 3.0.83  (0) 2011.06.30
Posted by lemonT