Hello,
well my pb is not solved, I use the trick to get pointer of anim and use onEnd
but the callback is not called at End, it's done simultaneously...
you can check this in commenting "dojo.style(zenode, "display", "none");" in the following code.
with 'this' inside ( dojo.connect(anim, 'onEnd', this, this.afterSlideMoveTileToPlayerBoard(idiv,zenode,index)); it's same behaviour...
I've tried also;
any idea?
well my pb is not solved, I use the trick to get pointer of anim and use onEnd
but the callback is not called at End, it's done simultaneously...
you can check this in commenting "dojo.style(zenode, "display", "none");" in the following code.
Code: Select all
afterSlideMoveTileToPlayerBoard:function(idiv,zenode,index)
{
dojo.style(idiv, "backgroundPosition", -(index *80) + "px");
dojo.style(zenode, "display", "none");
dojo.disconnect(m_connect[zenode]);
//m_connect[idiv]=dojo.connect( $(idiv) , 'onclick',this, 'OnClickManagement');
},
SlideMoveTileToPlayerBoard:function (zeplayer_id,zenode,index)
{
var idiv="pb_move_"+zeplayer_id;
dojo.fadeIn({node:idiv}).play();
this.attachToNewParent( zenode, idiv ); // To keep position bahaviour in case of reduce/enhance
var anim= this.slideToObject(zenode,idiv,1000).play();
dojo.connect(anim, 'onEnd', this.afterSlideMoveTileToPlayerBoard(idiv,zenode,index));
},
I've tried also
Code: Select all
var anim= this.slideToObject(zenode,idiv,1000);
anim.play();
any idea?