0 Replies Latest reply on Jan 17, 2012 5:50 PM by chapsovanyuth

    Use stagewebview to load html page is slow, Please help me?

    chapsovanyuth

      Dear all developer flex mobile:

       

      I'm new flex mobile developer.

      I use stagewebview with flex mobile project to load html page in link :http://www.prosportsblogging.com/sports/nhl-hockey/ on IPad device is slow it spend 12 seconds for loading complete. if I open this link in Safari browser it spend 4 seconds.

      my code below:

                 private var _stageWeb:StageWebView;

                  protected function createStageWebView():void

                  {

                      if(StageWebView.isSupported)

                      {

                         

                         

                         

                          _stageWeb = new StageWebView();

                          _stageWeb.stage = stage;

                          _stageWeb.viewPort = new Rectangle(0,42,1024,1024);

                          _stageWeb.loadURL("http://www.prosportsblogging.com/sports/nhl-hockey/");

                         

                          _stageWeb.addEventListener(Event.COMPLETE,htmlLoadingHandle);

                          _stageWeb.addEventListener(ErrorEvent.ERROR,errWebViewLoadingHandle);

                          //_stageWeb.addEventListener(LocationChangeEvent.LOCATION_CHANGING, locationChangingHandler);

                          _stageWeb.addEventListener(LocationChangeEvent.LOCATION_CHANGE, locationChangeHandler);

                         

                      }

                     

                  }

       

      Someone help me?