/* make mode: plugin,effect,frame,base,data view mode: plugin,effect,frame,base,src */ /* http://www.qingcai.net/makemtv/mtv_widget/container.swf?plugin=heart& effect=none& frame=none& base=mtv_widget& src=200708/45445024.xml& present=qingcai.net.swf */ var MTVID=src.split("/").pop().split(".xml")[0]; if(present=="qingcai.net.swf"){ base="http://www.qingcai.net/makemtv/"+base src="http://www.qingcai.net/userdata/mtvxml/"+src } // autostart 是外部传进的参数 //if(autostart=="false"){autostart=false}else{autostart=true} autostart=!(autostart=="false") if(stageWidth&&stageHeight){ stageWidth=parseInt(stageWidth) stageHeight=parseInt(stageHeight) } //450x338 /* flow sys.init => scr.init => wcon.init => sys.setMusic => lrc.load => mp3.load => mp3.enter => wsc.getMusicURLById => mp3.load => mp3.enter => scr.createTit => scr.createTxt */ import com.UI.*; #include "typewriter.as" #include "lrc_script.as" #include "mp3_script.as" #include "scr_script.as" #include "sys_script.as" #include "run_script.as" #include "wsc_script.as" #include "wcon_script.as" //接口 import flash.external.*; ExternalInterface.addCallback('FSetPlugin', wcon, wcon.setPlugin); ExternalInterface.addCallback('FSetEffect', wcon, wcon.setEffect); ExternalInterface.addCallback('FSetFrame', wcon, wcon.setFrame); ExternalInterface.addCallback('FSetData', wcon, wcon.setData); ExternalInterface.addCallback('FSetMusic', sys, sys.setMusic); Stage.align = "TL" Stage.scaleMode = "noScale" Stage.showMenu = false; this.onEnterFrame = function(){ if(sys.stageWidth>0){ sys.init(); scr.init(); //sys.setMusic(wcon.data["music"],wcon.data["lrc"]) wcon.init() // 里面执行sys.setMusic delete this.onEnterFrame; } } var stageListener = new Object(); stageListener.onResize = function(){ sys.reSize() } Stage.addListener(stageListener); //trace(scr.fontSize) /* 276-300 => 12 //bug 301-325 => 13 326-350 => 14 //bug 351-375 => 15 376-400 => 16 //bug 401-425 => 17 //bug 426-450 => 18 // default 451-475 => 19 476-500 => 20 501-525 => 21 526-550 => 22 551-575 => 23 576-600 => 24 */