当前位置: 代码迷 >> 网页设计 >> flex 怪怪的错,请进来看一眼感谢.解决思路
  详细解决方案

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

热度:731   发布时间:2012-04-07 17:31:51.0
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