ragazzi ciao, è la primissima volta che mi metto su as3..
ho un pulsante che ha un azione dichiarata in un frame:
volevo associare al tasto un'azione...ma aspita non riesco..
prima riuscivo con le azioni normali...con as3 non riesco non so dove mettere le mani..
praticamente l'azione che vorrei mettere serve per transitare tra un swf e l'altro..
azione nel frame as3:
// config name
name.nomme = "DOVE SIAMO";
link = "dovesiamo.html";
// config but
this.stop();
this.onEnterFrame = function() {
if (voltar == true) {
this.prevFrame();
}
}
this.onRollOver = function() {
voltar = false;
this.play();
}
this.onRollOut = function() {
voltar = true;
}
this.onRelease = function() {
getURL(link);
}
l'azione che vorrei implementare è :
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "section1";
container.loadMovie("section1.swf");
} else if (_root.currMovie != "section1") {
if (container._currentframe>=container.midframe) {
_root.currMovie = "section1";
container.play();
}
}
}
grazie so che per molti si tratta di un click...ma per me è questione di crack... :berto:

Rispondi quotando