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(); }

 


Page chargée en 0.015 sec.

Dernière Modification : Mar 17 Fevrier 2026 14:17
Copyright © 1999-2026 Jean-Paul Molina Tous droits réservés.

 

to Google