3D-Countdown mit FIVe3D

Ich habe eine Klasse CountDown für Actionscript 3.0. Um es zu testen habe ich ein Beispiel mit dem Text-Rendering-Funktionen FIVe3D .

Hier klicken, um den Flash-Film öffnen

Download des Quellcodes

) in 3D scritto FIVe3D. Die Quelle countdown.zip umfasst die Klasse CountDown , dass das Beispiel ( CountDownDemo ) 3D FIVe3D schrieb. In diesem Beispiel können Sie auch das Enddatum über ein Textfeld editierbar. Die Klasse CountDown wird so bald wie möglich eingeführt werden Undolibrary .

CountDown Class

Die Klasse kann durch Eingabe von Jahr, Monat, Tag, Stunde, Minuten und Sekunden des Enddatum instanziiert werden:

1
2
3
4
5
6
7
CountDown = new CountDown ( 2009 , 1 , 1 ) ; // primo gennaio 2009 cd var: = new Countdown Countdown (2009, 1, 1) / / 1. Januar 2009
Event . ENTER_FRAME , addEventListener ( Ereignis . ENTER_FRAME,
e : Event ) : void { Funktion (e: Event- ): void {
; . cd Refresh ();
cd . leftDays + '-' + cd . leftHours + '-' + cd . leftMinutes + '-' + cd . leftSeconds + '-' + cd . leftMilliseconds ) ; trace (cd. leftDays + '-' + cd leftHours + '-' + cd leftMinutes + '-' + cd leftSeconds + '-' + cd leftMilliseconds....);
}
);

Sie können das Enddatum ohne erneute instanziieren die Klasse wechseln CountDown . Dafür gibt es zwei verschiedene Methoden: setCountDown() und setCountDownByText()

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

4 Kommentare zu "3D-Countdown mit FIVe3D"

  1. 12. Juni 2008 Julius :

    Sehr interessant ...

    Ich bemerkte, dass andere FIVe3D veröffentlicht Demo ... sehr, sehr neugierig =)

    großartige Entwicklung!

  2. 13. Juni 2008 krayen :

    Nun, ich würde sagen ... fabelhaft.
    Komplimente

  3. 13. Oktober 2008 A-Klasse in Javascript Countdown | Undolog.com :

    [...] Beitrag von 3D CountDown FIVe3D (siehe auch wie ich es tat: Schreiben Sie einen Countdown in Flash), wurde für eine Klasse vorgeschlagen [...]

Hinterlasse einen Kommentar

XHTML TAG PERMIT: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> INSERTION CODE:
 <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 


Stoppen SOPA