package {
import flash.display.MovieClip;
public class guandao extends MovieClip {
public var heights:int;
public var g1:MovieClip; //添加
public function guandao()
{
// constructor code
g1 = getChildByName("g1") as MovieClip; //添加
heights=Math.floor(Math.random()*(230+1));
g1.height=heights-24;
}
}
}
这个我也不知道的