@@ -1544,7 +1544,7 @@ var SpriteFrameTest = SpriteTestDemo.extend({
15441544 animFrames . push ( frame ) ;
15451545 }
15461546
1547- var animation = cc . Animation . createWithSpriteFrames ( animFrames , 0.3 ) ;
1547+ var animation = cc . Animation . create ( animFrames , 0.3 ) ;
15481548 this . _sprite1 . runAction ( cc . RepeatForever . create ( cc . Animate . create ( animation ) ) ) ;
15491549
15501550 // to test issue #732, uncomment the following line
@@ -1573,7 +1573,7 @@ var SpriteFrameTest = SpriteTestDemo.extend({
15731573
15741574 // append frames from another batch
15751575 moreFrames = moreFrames . concat ( animFrames ) ;
1576- var animMixed = cc . Animation . createWithSpriteFrames ( moreFrames , 0.3 ) ;
1576+ var animMixed = cc . Animation . create ( moreFrames , 0.3 ) ;
15771577
15781578 this . _sprite2 . runAction ( cc . RepeatForever . create ( cc . Animate . create ( animMixed ) ) ) ;
15791579
@@ -1687,7 +1687,7 @@ var SpriteFrameAliasNameTest = SpriteTestDemo.extend({
16871687 animFrames . push ( frame ) ;
16881688 }
16891689
1690- var animation = cc . Animation . createWithSpriteFrames ( animFrames , 0.3 ) ;
1690+ var animation = cc . Animation . create ( animFrames , 0.3 ) ;
16911691 // 14 frames * 1sec = 14 seconds
16921692 sprite . runAction ( cc . RepeatForever . create ( cc . Animate . create ( animation ) ) ) ;
16931693 } ,
@@ -1743,7 +1743,7 @@ var SpriteOffsetAnchorRotation = SpriteTestDemo.extend({
17431743 animFrames . push ( frame ) ;
17441744 }
17451745
1746- var animation = cc . Animation . createWithSpriteFrames ( animFrames , 0.3 ) ;
1746+ var animation = cc . Animation . create ( animFrames , 0.3 ) ;
17471747 sprite . runAction ( cc . RepeatForever . create ( cc . Animate . create ( animation ) ) ) ;
17481748 sprite . runAction ( cc . RepeatForever . create ( cc . RotateBy . create ( 10 , 360 ) ) ) ;
17491749
@@ -1810,7 +1810,7 @@ var SpriteBatchNodeOffsetAnchorRotation = SpriteTestDemo.extend({
18101810 animFrames . push ( frame ) ;
18111811 }
18121812
1813- var animation = cc . Animation . createWithSpriteFrames ( animFrames , 0.3 ) ;
1813+ var animation = cc . Animation . create ( animFrames , 0.3 ) ;
18141814 sprite . runAction ( cc . RepeatForever . create ( cc . Animate . create ( animation ) ) ) ;
18151815 sprite . runAction ( cc . RepeatForever . create ( cc . RotateBy . create ( 10 , 360 ) ) ) ;
18161816
@@ -1875,7 +1875,7 @@ var SpriteOffsetAnchorScale = SpriteTestDemo.extend({
18751875 animFrames . push ( frame ) ;
18761876 }
18771877
1878- var animation = cc . Animation . createWithSpriteFrames ( animFrames , 0.3 ) ;
1878+ var animation = cc . Animation . create ( animFrames , 0.3 ) ;
18791879 sprite . runAction ( cc . RepeatForever . create ( cc . Animate . create ( animation ) ) ) ;
18801880
18811881 var scale = cc . ScaleBy . create ( 2 , 2 ) ;
@@ -1948,7 +1948,7 @@ var SpriteBatchNodeOffsetAnchorScale = SpriteTestDemo.extend({
19481948 animFrames . push ( frame ) ;
19491949 }
19501950
1951- var animation = cc . Animation . createWithSpriteFrames ( animFrames , 0.3 ) ;
1951+ var animation = cc . Animation . create ( animFrames , 0.3 ) ;
19521952 sprite . runAction ( cc . RepeatForever . create ( cc . Animate . create ( animation ) ) ) ;
19531953
19541954 var scale = cc . ScaleBy . create ( 2 , 2 ) ;
@@ -2015,7 +2015,7 @@ var SpriteOffsetAnchorSkew = SpriteTestDemo.extend({
20152015 animFrames . push ( frame ) ;
20162016 }
20172017
2018- var animation = cc . Animation . createWithSpriteFrames ( animFrames , 0.3 ) ;
2018+ var animation = cc . Animation . create ( animFrames , 0.3 ) ;
20192019 sprite . runAction ( cc . RepeatForever . create ( cc . Animate . create ( animation ) ) ) ;
20202020
20212021 var skewX = cc . SkewBy . create ( 2 , 45 , 0 ) ;
@@ -2082,7 +2082,7 @@ var SpriteBatchNodeOffsetAnchorSkew = SpriteTestDemo.extend({
20822082 animFrames . push ( frame ) ;
20832083 }
20842084
2085- var animation = cc . Animation . createWithSpriteFrames ( animFrames , 0.3 ) ;
2085+ var animation = cc . Animation . create ( animFrames , 0.3 ) ;
20862086 sprite . runAction ( cc . RepeatForever . create ( cc . Animate . create ( animation ) ) ) ;
20872087
20882088 animFrames = null ;
@@ -2148,7 +2148,7 @@ var SpriteOffsetAnchorSkewScale = SpriteTestDemo.extend({
21482148 animFrames . push ( frame ) ;
21492149 }
21502150
2151- var animation = cc . Animation . createWithSpriteFrames ( animFrames , 0.3 ) ;
2151+ var animation = cc . Animation . create ( animFrames , 0.3 ) ;
21522152 sprite . runAction ( cc . RepeatForever . create ( cc . Animate . create ( animation ) ) ) ;
21532153
21542154 animFrames = null ;
@@ -2224,7 +2224,7 @@ var SpriteBatchNodeOffsetAnchorSkewScale = SpriteTestDemo.extend({
22242224 animFrames . push ( frame ) ;
22252225 }
22262226
2227- var animation = cc . Animation . createWithSpriteFrames ( animFrames , 0.3 ) ;
2227+ var animation = cc . Animation . create ( animFrames , 0.3 ) ;
22282228 sprite . runAction ( cc . RepeatForever . create ( cc . Animate . create ( animation ) ) ) ;
22292229
22302230 animFrames = null ;
@@ -2297,7 +2297,7 @@ var SpriteOffsetAnchorFlip = SpriteTestDemo.extend({
22972297 animFrames . push ( frame ) ;
22982298 }
22992299
2300- var animation = cc . Animation . createWithSpriteFrames ( animFrames , 0.3 ) ;
2300+ var animation = cc . Animation . create ( animFrames , 0.3 ) ;
23012301 sprite . runAction ( cc . RepeatForever . create ( cc . Animate . create ( animation ) ) ) ;
23022302
23032303 animFrames = null ;
@@ -2368,7 +2368,7 @@ var SpriteBatchNodeOffsetAnchorFlip = SpriteTestDemo.extend({
23682368 animFrames . push ( frame ) ;
23692369 }
23702370
2371- var animation = cc . Animation . createWithSpriteFrames ( animFrames , 0.3 ) ;
2371+ var animation = cc . Animation . create ( animFrames , 0.3 ) ;
23722372 sprite . runAction ( cc . RepeatForever . create ( cc . Animate . create ( animation ) ) ) ;
23732373
23742374 animFrames = null ;
@@ -2423,7 +2423,7 @@ var SpriteAnimationSplit = SpriteTestDemo.extend({
24232423 animFrames . push ( frame4 ) ;
24242424 animFrames . push ( frame5 ) ;
24252425
2426- var animation = cc . Animation . createWithSpriteFrames ( animFrames , 0.2 ) ;
2426+ var animation = cc . Animation . create ( animFrames , 0.2 ) ;
24272427 var animate = cc . Animate . create ( animation ) ;
24282428 var seq = cc . Sequence . create ( animate ,
24292429 cc . FlipX . create ( true ) ,
@@ -2568,7 +2568,7 @@ var SpriteBatchNodeChildren = SpriteTestDemo.extend({
25682568 animFrames . push ( frame ) ;
25692569 }
25702570
2571- var animation = cc . Animation . createWithSpriteFrames ( animFrames , 0.2 ) ;
2571+ var animation = cc . Animation . create ( animFrames , 0.2 ) ;
25722572 sprite1 . runAction ( cc . RepeatForever . create ( cc . Animate . create ( animation ) ) ) ;
25732573 // END NEW CODE
25742574
@@ -3370,7 +3370,7 @@ var AnimationCache = SpriteTestDemo.extend({
33703370 animFrames . push ( frame ) ;
33713371 }
33723372
3373- var animation = cc . Animation . createWithSpriteFrames ( animFrames , 0.2 ) ;
3373+ var animation = cc . Animation . create ( animFrames , 0.2 ) ;
33743374
33753375 // Add an animation to the Cache
33763376 cc . AnimationCache . getInstance ( ) . addAnimation ( animation , "dance" ) ;
@@ -3385,7 +3385,7 @@ var AnimationCache = SpriteTestDemo.extend({
33853385 animFrames . push ( frame ) ;
33863386 }
33873387
3388- animation = cc . Animation . createWithSpriteFrames ( animFrames , 0.2 ) ;
3388+ animation = cc . Animation . create ( animFrames , 0.2 ) ;
33893389
33903390 // Add an animation to the Cache
33913391 cc . AnimationCache . getInstance ( ) . addAnimation ( animation , "dance_gray" ) ;
@@ -3400,7 +3400,7 @@ var AnimationCache = SpriteTestDemo.extend({
34003400 animFrames . push ( frame ) ;
34013401 }
34023402
3403- animation = cc . Animation . createWithSpriteFrames ( animFrames , 0.2 ) ;
3403+ animation = cc . Animation . create ( animFrames , 0.2 ) ;
34043404
34053405 // Add an animation to the Cache
34063406 cc . AnimationCache . getInstance ( ) . addAnimation ( animation , "dance_blue" ) ;
0 commit comments