Preloader : moving dots

 

Insert a scene you 'll put ahead. In it, insert a wide empty dynamic text, Target toggled.
In Advanced, enter txtdyn as variable name.

In Outline, select that scene, get in Expert Mode .
Enter the script :

onLoad() { txtdyn = "Loading"; }
onFrame (1)
{
     rapport = _root.getBytesLoaded() / _root.getBytesTotal();
     txtdyn += "."; // add a dot
      // if 100% get to next scene
     if (rapport == 1) nextSceneAndPlay();
}
onFrame (2) { prevFrameAndPlay(); }

 


Si vous aimez le site

 

Select a language if you need :


Page chargée en 0.003 sec.

Dernière Modification : Mer 25 Janvier 2017 8:56
Copyright © 1999-2017 Jean-Paul Molina Tous droits réservés.

to Google