//帧上import com.FifthFrame;FifthFrame.answerStr="2222222"FifthFrame.wordStr="22222222222222222"var f5:FifthFrame=new FifthFrame(this,clickMc,txtMc)f5.nextFun(nextBtn)
package com{ import flash.display.MovieClip; import flash.events.MouseEvent; import flash.text.TextField; import flash.display.SimpleButton; public class FifthFrame extends MovieClip { private var thisMc:MovieClip; private var clickMc:MovieClip; private var txtMc:MovieClip; private var stepNum:Number; private var roundInt:int; private var roundArr:Array; public static var answerStr:String; private var removeArr:Array; public static var wordStr:String; public static var answerArr=[]; public function FifthFrame(_thisMc:MovieClip,_clickMc:MovieClip,_txtMc:MovieClip) { thisMc=_thisMc; clickMc=_clickMc; txtMc=_txtMc; txtMc.addEventListener(MouseEvent.CLICK,onTxt); clickMc.addEventListener(MouseEvent.CLICK,onClick); init(); } private function rightInit() { //txtMc 变空 removeArr=[]; answerStr=""; for (var i:uint=0; i
//答案 private var arr5:Array=["12312312323"]; public function Answer5(_mc:MovieClip ) { var str:String=""; _mc["anwerMc"].visible=false; for (var i:uint=0; i<_mc["txtMc"].numChildren; i++) { var newTxt:TextField=_mc["txtMc"].getChildAt(i) as TextField; newTxt.text=""; } for (var j:uint=0; j