Connexion
Tutoriels Graphisme [ Flash ] Principales actions sur les boutons

[ Flash ] Principales actions sur les boutons

Lorsque vous créer un bouton, il convient de penser à nommer l'occurrence de ce bouton.
Ex : bouton_btn  , play_btn , etc..

Action Play et Stop

  • L'action play fait démarrer une animation

on (press) {

play_btn.onRelease = function() {

play();

};

}

 

  • L'action stop arrête l' animation

on (press) {

stop_btn.onRelease = function() {

stop();

};

}

Action Play and Stop

 

GotoAndPlay

  • L'action GotoAndPlay amène l' animation à une image précise.

bouton_btn.onRelease = function() {


gotoAndPlay(1);


}

Action GotoAndPlay

GotoAndStop

  • L'action stop saute à une autre image et arrête la lecture

bouton_btn.onRelease = function() {


gotoAndStop(30);


}

GetURL

  • GetURL appelle une page web

bouton_btn.onRelease = function() {


getURL("http://..........");


}

Action GetURL

Ajouter un Commentaire


Code de sécurité
Rafraîchir