Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delay Setup & Conversion to SWF #1

Open
jackbit opened this issue Sep 10, 2012 · 1 comment
Open

Delay Setup & Conversion to SWF #1

jackbit opened this issue Sep 10, 2012 · 1 comment

Comments

@jackbit
Copy link

jackbit commented Sep 10, 2012

Is it available to setup delay between pages ? example user want to have 5 seconds delay before transition to next animation.

and there's away to convert this as3 to swf file runtime from without serverside process like as3swf plugin, i tried using this plugin but give me blank swf file.

thanks for your help:)
great job.

@jamesflorentino
Copy link
Owner

You could issue a delay by creating a timeout function on the finished callback event.

flipPlane = new FlipPlane ( 10 , 10 );
flipPlane.addPattern ( new lib_bmp_intro as Bitmap );
flipPlane.addPattern ( new lib_bmp as Bitmap );
flipPlane.addPattern ( new lib_bmp2 as Bitmap );
flipPlane.addPattern ( new lib_bmp3 as Bitmap );
flipPlane.finished.add ( onPlaneTransition );

function onPlaneTransition () : void {
  var delay = 1500; // 1.5s
  setTimeout(function() {
     flipPlane.doNextTransition();
  }, delay);
}

I haven't really touched this code for quite some time as I've migrated from AS3 to JavaScript/HTML5 for the past year. But I remember building it on FlashDevelop before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants