Create nextFrame e prevFrame in createJS for Animate CC

1084 views
Skip to first unread message

Hudson Ludgero

unread,
May 21, 2016, 12:33:35 PM5/21/16
to CreateJS Discussion
Hi, Guys!

I need create nextFrame e prevFrame on Animate CC using the createJS, somebody can help me?

fumio

unread,
May 21, 2016, 1:37:43 PM5/21/16
to CreateJS Discussion
Use the currentFrame property and gotoAndStop() Method.

var currentFrame =this.currentFrame;
var direction = 1;
this.gotoAndStop(currentFrame + direction);


2016年5月22日日曜日 1時33分35秒 UTC+9 Hudson Ludgero:

Hudson Ludgero

unread,
May 26, 2016, 4:39:02 PM5/26/16
to CreateJS Discussion
Hi Fumio! tks a lot, I create a navigation with label, and after you code I create using currentFrame! So I have problem in two process, the aplication after some clicks begin to very slowly! Somebody can help me again!

Hudson Ludgero

unread,
May 28, 2016, 8:29:56 AM5/28/16
to CreateJS Discussion
Hi!! Fumio! I resolved that problem!! tks!

Andreas Berg

unread,
May 30, 2016, 12:19:13 PM5/30/16
to CreateJS Discussion
@Hudson
Can you tell me how you solved the problem with the slowing down effect of the animation?

Hudson Ludgero

unread,
Jun 6, 2016, 6:57:23 AM6/6/16
to CreateJS Discussion

Hi Andreas, how are you! só I worked with flash for long time, and

stop complete, So this possibilite to work with createjs , it’s nice

but I not specialist! I try this way!


Not push visible content on the stage, only import for library

use this for all elements:


content01_mc = new lib.MC1();

content01_mc.x = 96;

content01_mc.y = 51;

content01_mc.cache (-400,-400,800,800);

this.bg_mc.addChild(content01_mc);



And on the next botton I push this script


this.bg_mc.removeChild(content01_mc);


So if you need the prototype file! Tell me!! I still searching for best solution!

Reply all
Reply to author
Forward
0 new messages