me explico mejor:
una variable var llamada "fade_in", que va a sustituir la parte onEnterframe = function()......
Código :
boton.onRelease = function(){
miclip_mc.onEnterFrame = function (){
if (this._currentframe != 12){
this.nextFrame();
}
else {
this.stop();
delete this ["onEnterFrame"]
}
}
}asi en vez de escribir todo lo anterior solo escribir la variable para sustituir lo demás del código
Código :
boton.onRelease = function(){
miclip_mc.fade_in
}
entonces la variable sería
Código :
var fade_in:noseuqe = (onEnterFrame = function (){
if (this._currentframe != 12){
this.nextFrame();
}
else {
this.stop();
delete this ["onEnterFrame"]
}
})
es posible hacer algo así para un codigo que se va a repetir y repetir durante toda mi pelicula, o debo usar un archivo AS, pero si es así como debo hacerlo?
