lunedì 13 ottobre 2014

Effeto dissolvenza

Volete stupire i vostri clienti con un programma dall'effetto di dissolvenza all'avvio e alla chiusura? Basta usare la proprietà blendlelvel.
Il seguente codice fa apparire dal nulla con l'effetto dissolvenza il vostro programma all'avvio e lo fa sparire allo stesso modo, ecco il codice:

on preOpenStack
   set the blendLevel of this stack to 100
end preOpenStack

on openStack
   repeat with i = 100 down to 1
      set the blendLevel of this stack to i
      wait 1 millisecond
   end repeat
end openStack

on closeStack
   repeat with i = 1 to 100
      set the blendLevel of this stack to i
      wait 1 millisecond
   end repeat
end closeStack

Notate come il messaggio PreOpenStack si attiva prima che il programma appaia sullo schermo.

Nessun commento:

Posta un commento