Ciao a tutti chi mi sa spiegare come faccio a richiamare una funzione.
Dunque ho un pulsante che dovrebbe richiamare questo script:
onClipEvent (load) {
function window(x,y,w,h) {
newx = x;
newy = y;
neww = w;
newh = h;
}
}
onClipEvent (load) {
newWin = new window(390,230,300,300);
}
onClipEvent (enterFrame) {
speed = 10;
basew = this._width;
baseh = this._height;
difw = neww-basew;
difh = newh-baseh;
setProperty(this, _width, basew+(difw/speed));
setProperty(this, _height, baseh+(difh/speed));
if (basew >= neww-1 and basew <= neww+1) {
setProperty(this, _width, neww);
}
if (baseh >= newh-1 and baseh <= newh+1) {
setProperty(this, _height, newh);
}
}
onClipEvent (enterFrame) {
posx = this._x;
posy = this._y;
difx = newx-posx;
dify = newy-posy;
setProperty(this, _x, posx + (difx/speed));
setProperty(this, _y, posy + (dify/speed));
if (posx >= newx - 1 and posx <= newx + 1) {
setProperty(this, _x, newx);
}
if (posy >= newy - 1 and posy <= newy + 1) {
setProperty(this, _y, newy);
}
}
ho già provato a scrivere:
on (release) {
_root.nomeclip.window(390,230,300,300);
}
..ma nulla non funziona qualcuno mi sa dire perchè?![]()
grazie mille!![]()

Rispondi quotando