vedi questa parte
Codice PHP:
content_bar.onEnterFrame=function(){
if(_level0.stato == "play"){
if(this._x > (-100*ID)){this._x-=5}
else{
if(_level0.ID_box<=_level0.maxfoto){
this["box"+ID_box]._x=100*(_level0.maxfoto-1)+100*ID
ID++
ID_box++
this._x-=5}
else{ID_box=1;}
}
}
}
mantieni solo lo stato "play" ma utilizza una variabile al posto del 5
Codice PHP:
content_bar.VELOCITA = 5
content_bar.onEnterFrame=function(){
if(_level0.stato == "play"){
if(this._x > (-100*ID)){this._x-=VELOCITA}
else{
if(_level0.ID_box<=_level0.maxfoto){
this["box"+ID_box]._x=100*(_level0.maxfoto-1)+100*ID
ID++
ID_box++
this._x-=VELOCITA}
else{ID_box=1;}
}
}
}
e quindi
Codice PHP:
mc.onRollOver=function(){
_level0.stato="play"; content_bar.VELOCITA = 2
}
mc.onRollOut=function(){
_level0.stato="play"; content_bar.VELOCITA = 5
}
mc.onPress=function(){
_level0.stato="stop"
trace(this.url)
}
mc.onRelease=function(){
_level0.stato="play"
}
Dovrebbe funzionare.
Ciao