Compte à rebours avec 3D FIVe3D

J'ai écrit une classe CountDown pour ActionScript 3.0. Pour le tester, j'ai créé un exemple en utilisant les capacités de rendu de texte FIVe3D .

Cliquez ici pour ouvrir l'animation Flash

Télécharger la source

) in 3D scritto FIVe3D. La source countdown.zip comprend la classe CountDown que l'exemple ( CountDownDemo ) FIVe3D écrit en 3D. Dans l'exemple que vous pouvez également modifier la date de fin à travers un champ de texte éditable. La classe CountDown sera inséré dès que Undolibrary .

Classe CountDown

La classe peut être instanciée par année, mois, jour, heures, minutes et secondes de la date de fin:

1
2
3
4
5
6
7
CountDown = new CountDown ( 2009 , 1 , 1 ) ; // primo gennaio 2009 cd var: = new CountDown compte à rebours (2009, 1, 1) / / Janvier 1, 2009
Event . ENTER_FRAME , addEventListener ( événement . ENTER_FRAME,
e : Event ) : void { function (e: Event ): void {
; . CD Refresh ();
cd . leftDays + '-' + cd . leftHours + '-' + cd . leftMinutes + '-' + cd . leftSeconds + '-' + cd . leftMilliseconds ) ; trace (Cx leftDays + '-' + cd + leftHours '-' + cd leftMinutes + '-' + cd leftSeconds + '-' + cd leftMilliseconds....);
}
);

Vous pouvez changer la date de fin sans avoir à ré-instancier la classe CountDown . Pour cela, il existe deux méthodes distinctes: setCountDown() et setCountDownByText()

1
2
3
4
CountDown = new CountDown ( ) ; cd var: = new CountDown CountDown ();
2009 , 1 , 1 ) ; . De CD setCountDown (2009, 1, 1);
/ /
'2009,1,1' ) ; . cd setCountDownByText ('2009, 1.1 ');

4 commentaires à "Compte à rebours 3D avec FIVe3D"

  1. 12 juin 2008 Julius :

    Très intéressant ...

    J'ai remarqué que d'autres démo FIVe3D publié ... = très, très curieux)

    grand développement!

  2. 13 juin 2008 Krayen :

    Eh bien, je dirais fabuleux ....
    compliments

  3. 13 octobre 2008 Une classe compte à rebours en Javascript | Undolog.com :

    [...] Post by 3D CountDown FIVe3D (voir aussi comment j'ai fait: écrire un compte à rebours en Flash), a été proposé pour une classe [...]

Laisser un commentaire

TAG XHTML PERMIS: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> code d'insertion:
 <pre></pre> // blocco generico <code></code> // blocco generico [cc_actionscript][/cc_actionscript] // Actionscript [cc_actionscript3][/cc_actionscript3] // Actionscript 3 [cc_css][/cc_css] // CSS Style Sheet [cc_html][/cc_html] // HTML [cc_js][/cc_js] // Javascript [cc_objc][/cc_objc] // Objective-C [cc_php][/cc_objc] // PHP [cc_sql][/cc_sql] // SQL 


Arrêtez SOPA