日期:2014-05-17  浏览次数:20760 次

flex 怪怪的错,请进来看一眼感谢.
Java code
   
           private var spantop:Spacer=new Spacer();
           private function heigthiws():void
           {
            //spantop.height=0;
        this.addChild(spantop);
             var heirts:int=Math.round(stage.stageHeight/3.386);
        if(heirts>1){
        spantop.height=heirts;//不起做用,为什么呢?
        Alert.show(heirts.toString());//这里又可以显示出数来,请达人帮助.
              }
      }



------解决方案--------------------
你需要对spantop设置一个界面刷新的属性。比如设置spantop.visble=true