[ Flash ] Principales actions sur les boutons
Mise à jour le 12 Mai 2012
Léa
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();
};
}
GotoAndPlay
- L'action GotoAndPlay amène l' animation à une image précise.
bouton_btn.onRelease = function() {
gotoAndPlay(1);
}
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://..........");
}
Ajouter un Commentaire