在flash actionscript3.0中请问怎么将这个输出的值输出到动态文本框里
importflash.events.Event;importflash.text.TextField;varfenshu_txt:TextField=newTextFi...
import flash.events.Event;
import flash.text.TextField;
var fenshu_txt:TextField=new TextField();
var mic:Microphone;
mic=Microphone.getMicrophone();
mic.setLoopBack(true);
mic.gain=60;
this.addEventListener(Event.ENTER_FRAME,enterFrameHandler);
function enterFrameHandler(evt:Event){
trace(mic.activityLevel);
}
trace(mic.activityLevel);←请问怎么将这个输出的支持显示在动态文本框里fenshu_txt中 展开
import flash.text.TextField;
var fenshu_txt:TextField=new TextField();
var mic:Microphone;
mic=Microphone.getMicrophone();
mic.setLoopBack(true);
mic.gain=60;
this.addEventListener(Event.ENTER_FRAME,enterFrameHandler);
function enterFrameHandler(evt:Event){
trace(mic.activityLevel);
}
trace(mic.activityLevel);←请问怎么将这个输出的支持显示在动态文本框里fenshu_txt中 展开
1个回答
展开全部
import flash.events.Event;
import flash.text.TextField;
var fenshu_txt:TextField=new TextField();
addChild(fenshu_txt);
var mic:Microphone;
mic=Microphone.getMicrophone();
mic.setLoopBack(true);
mic.gain=60;
this.addEventListener(Event.ENTER_FRAME,enterFrameHandler);
function enterFrameHandler(evt:Event){
fenshu_txt.text=mic.activityLevel+"";
}
import flash.text.TextField;
var fenshu_txt:TextField=new TextField();
addChild(fenshu_txt);
var mic:Microphone;
mic=Microphone.getMicrophone();
mic.setLoopBack(true);
mic.gain=60;
this.addEventListener(Event.ENTER_FRAME,enterFrameHandler);
function enterFrameHandler(evt:Event){
fenshu_txt.text=mic.activityLevel+"";
}
追问
嗯,好的,我试试
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询