Ciao a tutti,
io creo un mc caricando un immagine cosi :
_root.createEmptyMovieClip("image1", 400);
_root.image1.loadMovie("img/img1.jpg");
this.onEnterFrame = function() {
car = _root.image1.getBytesLoade();
tot=_root.image1.getBytesTotal();
if (tot != undefined) {
if (car>=tot and car>10) {
delete this.onEnterFrame;
_root.image1._x=120
_root.image1._y=161
_root.image1._visible=1;
}
}
}
poi creo un altro mc allo stesso modo rendendolo klikkabile:
_root.createEmptyMovieClip("button1", 399);
_root.button1.loadMovie("img/but1.jpg");
this.onEnterFrame = function() {
car = _root.button1.getBytesLoaded();
tot=_root.button1.getBytesTotal();
if (tot != undefined) {
if (car>=tot and car>10) {
delete this.onEnterFrame;
_root.image1._x=70
_root.button1._y=161
_root.button1._visible=1;
}
}
}
_root.button1.onPress = function(){
....
}
Il problema è che quando il secondo mc passa sotto il primo (con uno scroll orizzonatale) rimane klikkabile, in pratica è come se il primo nn esistesse.
Vorrei che non fosse + klikkabile finche rimane nascosto.
Grazie