Hybrid View

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User shinriyo's Avatar
    Join Date
    Nov 2011
    Posts
    76
    Vote Rating
    0
    shinriyo is on a distinguished road

      0  

    Exclamation playing animation without loading image files

    playing animation without loading image files


    Hi there.

    I created animation by Sencha Animator.
    But, when the iPhone didn't have a cache, the animation plays without loading image files.
    Would you tell me the way to play animation after loading all image files?

  2. #2
    Sencha User arnebech's Avatar
    Join Date
    Jun 2010
    Posts
    498
    Vote Rating
    10
    arnebech will become famous soon enough

      0  

    Default


    The animation starts to play when the "load" DOM event is fired. This typically means that all the images are loaded. You could also try to wrap the "AN.Controller.setConfig(configData);" in a setTimeout, to give the browser a little time to perhaps display the images after they are loaded.

    e.g.
    Code:
    window.addEventListener('load', function(){
        var configData = {...};
        setTimeout(function(){
            AN.Controller.setConfig(configData);
        }, 10);
    }, false);

Thread Participants: 1