Codice PHP:
// registri i singoli valori di URL sui singli clip che tratterai come pulsanti
btn1.info="http://......"
btn2.info="http://......"
btn3.info="http://......"
btn4.info="http://......"
btn5.info="http://......"
btn6.info="http://......"
// Crei un protoipo di comportamento
MovieClip.prototype.gestButtn=function(){
this.onRollOver=function{..................................}
this.onRollOut=function{..................................}
this.onPress=function(){...................................}
this.onRelease=function{getURL(this.info, "_blank")
}
// associ ai pulsanti il prototipo
for(I=1;I<7;I++){ this["btn"+I].gestButton() }
N.b. questo codice va scritto sulla frame e non sugli oggetti
Ciao