读书人

flex 怪怪的错,请进来看一眼感谢.解决

发布时间: 2012-04-07 17:31:51 作者: rapoo

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

读书人网 >网页设计

热点推荐