Results 1 to 3 of 3

Thread: startAction

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Nov 2011

    Default startAction

    It is story about html Sencha exported.

    When I use the my function in "startAction", I always write like this.

            window.addEventListener('load', function(){
              var configData = {
                parentId: 'AN-sObj-parentOl',
                ormma: false,
                scenes: [{id: 0,animationCount: 26,duration: 2304.9262693827914,dimensions: {height: 320,width: 320,expanded: false,fit: false},
                startAction: function(controller,event) {
                  myFunc(); // my function
    But, in spite of I wrote in startAction, it happen AFTER start animation.

    I fix like that.
              startSceneByID: function(sceneID) {
                var me = this;
                // restart current scene without flicker
                if (sceneID === this.currentSceneID) {
                  //this.scenes[sceneID].element.setAttribute('class','run restart') // N/A>:)
                  this.scenes[sceneID].element.setAttribute('class','restart'); // OK:)

  2. #2
    Sencha User
    Join Date
    Jun 2010


    The 'start action' should go off at the start of the scene, but there is not guarantee that it will happen before the animation starts (might depend on the browser). Are you wanting a 'before start' action?

  3. #3


    this is really right what are you saying!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts