allora sulla scena principale ho una clip(tondo che funge da bottone) con nome istanza...
all' interno della clip ci sono: un livello variabili con questo codice:
// this sets the X and Y scale of the movie clip - do not resize it manually!!!
// you will break it!
// these numbers have to match the ones in the "button" layer below
xscale = Number(100);
yscale = Number(100);
// God's recipe for physics - play with these if you want (trial and error)
friction = .8;
ratio = .3;
// speed is good
speedXscale = 0;
speedYscale = 0;
// is it bouncing? you may not have to touch this
bounce = false;
un livello con il logo senza essere nessun simbolo
un altro livello con una clip vuota...all'interno di questa clip ci sono 2 frame con azioni:
su uno c'e' questo codice:
if (_parent:bounce == false) {
_parent:speedXscale = Number(_parent:speedXscale*_parent:friction)+Numbe r((_parent:xscale-_parent:_xscale)*_parent:ratio);
_parent:speedYscale = Number(_parent:speedYscale*_parent:friction)+Numbe r((_parent:yscale-_parent:_yscale)*_parent:ratio);
setProperty("_root.casa", _xscale, Number(_parent:_xscale)+Number(_parent:speedXscale ));
setProperty("_root.casa", _yscale, Number(_parent:_yscale)+Number(_parent:speedYscale ));
}
sull'altro questo:
if (_parent:bounce == false) {
_parent:speedXscale = Number(_parent:speedXscale*_parent:friction)+Numbe r((_parent:xscale-_parent:_xscale)*_parent:ratio);
_parent:speedYscale = Number(_parent:speedYscale*_parent:friction)+Numbe r((_parent:yscale-_parent:_yscale)*_parent:ratio);
setProperty("_root.casa", _xscale, Number(_parent:_xscale)+Number(_parent:speedXscale ));
setProperty("_root.casa", _yscale, Number(_parent:_yscale)+Number(_parent:speedYscale ));
}
che e' lo stesso pare......
e sull'ultimo livello della clip che sta sulla scena principale ci sta lu bottone e questo e' il relativo codice:
on (rollOver) {
bounce = false;
// this controls the scaling for the bounce effect
// you can change these to make the bounce big or small
// multiplication makes it bigger
// division makes it smaller
xscale = Number(xscale*1.5);
yscale = Number(yscale*1.5);
}
on (rollOut) {
bounce = false;
// this resets the scaling for the bounce effect
// this number has to match the "xscale" and "yscale" at the top layer of this clip
xscale = Number(100);
yscale = Number(100);
}
ho provato in tanti modi...ma zero...il testo segue il bounce.....ci deve essere un metodo??????? :master:
come mi hai detto te(enigma_79) nn va a prendermi la clip....forse perche' i comandi del bottone nn sono sulla scena principale....
ahhh che disperazione......![]()
![]()
![]()
graxie per il bensperato supporto....![]()