5 Replies Latest reply on Jul 31, 2009 8:46 AM by TDFlex

    Is possible to have the height of UIComponent more than 1e+8 pixel???

    TDFlex

      Hello

       

      I'm working on the Flex for a while and I would like to have the enormous plane to contain something.

      So I try to create the plane extends from the UIComponent and the size could be more than 1e+8 pixel.

      Obviously, I find out the display problem and an incorrect position are on the UIComponent.

       

      Everyone can try by this example.

      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:island="island.*">
          <mx:Script>
              <![CDATA[
                  import mx.events.FlexEvent;
                  private function uiCreateCompletedHandler(e:FlexEvent):void {
                      var g:Graphics = ui1.graphics;
                      g.clear();
                      g.beginFill(0x66CC44, 1);
                      g.drawRect(0, 0, ui1.width, ui1.height);
                      g.endFill();
                  }
                  private function uiMouseOverHandler(e:MouseEvent):void {
                      trace("LocalMouse("+e.localX+","+e.localY+")");
                  }
              ]]>
          </mx:Script>
         
          <mx:UIComponent id="ui1" x="0" y="0" width="100" height="100000000"
               creationComplete="{uiCreateCompletedHandler(event)}" mouseMove="{uiMouseOverHandler(event)}" />
          <mx:Canvas id="cv1" x="101" y="0" width="100" height="100000000" backgroundColor="0x44CC66"
               mouseMove="{uiMouseOverHandler(event)}" />
      </mx:Application>

       

      Toom