bambina è un parametro della funzione, e contiene un riferimento al pulsante, mentre tet è un riferimento al box.
Quindi se scrivi:
codice:
function mamma(bambina, tet)
{
bambina.onRelease = function()
{
with (tet) {
_yscale -= 4;
}
};
}
mamma(_root.pulsante_1, _root.box_1);
diventa
codice:
function mamma(_root.pulsante_1, _root.box_1)
{
bambina.onRelease = function()
{
with (tet) {
_yscale -= 4;
}
};
}
...
e poi
codice:
function mamma(_root.pulsante_1, _root.box_1)
{
_root.pulsante_1.onRelease = function()
{
with (_root.box_1) {
_yscale -= 4;
}
};
}
...