소스/웹

플래시 타이틀 소스

lemonT 2011. 7. 2. 09:58

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=/m/entry/%ED%94%8C%EB%9E%98%EC%8B%9C-%ED%83%80%EC%9D%B4%ED%8B%80-%EC%86%8C%EC%8A%A4
	&detailText=소스/웹
	&dateText=2011. 7. 2. 09:58&cateLink=/m/category/%EC%86%8C%EC%8A%A4/%EC%9B%B9");
</script>
	...


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