当浏览器大小变化(拖到改变大小或者F11时),应用能够自动实用浏览器大小的改变。部分代码如下:

    <fx:Script>
        <![CDATA[
            
            import mx.events.FlexEvent;
            import mx.events.ResizeEvent;
                        
            protected function vgroup1_creationCompleteHandler(event:FlexEvent):void
            {
                this.imageList.width = screen.width;
                this.addEventListener(ResizeEvent.RESIZE,update);
            }
            
            public function update(e:ResizeEvent):void
            {
                this.imageList.width = screen.width;
            }
            
        ]]>
    </fx:Script>
    

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-22
  • 2022-12-23
  • 2021-12-27
  • 2021-11-03
  • 2021-08-10
猜你喜欢
  • 2021-10-27
  • 2021-11-25
  • 2022-02-09
  • 2022-12-23
  • 2021-09-04
  • 2022-12-23
相关资源
相似解决方案