PDA

View Full Version : Scripting issues



artwisted
March 3rd, 2005, 01:50 PM
K im having problems witht his thing.
i have buttons,that control the yscale of a movieclip, i was succesful with one, but when i make more, it scales all the clips?

button code:
on (rollOver) {
_root.targYscale =400;
}
on (rollOut) {
_root.targYscale = 0;
}


movieclip code:
onClipEvent (load) {
_root.targYscale = 0;
}
onClipEvent (enterFrame) {
//cXscale = this._xscale;
cYscale = this._yscale;
//difXscale = cXscale-_root.targXscale;
difYscale = cYscale-_root.targYscale;
setProperty(this, _xscale, cXscale-(difXscale/5));
setProperty(this, _yscale, cYscale-(difYscale/5));
}

can any one help out?

Digitalosophy
March 3rd, 2005, 11:11 PM
http://s2.yousendit.com/d.aspx?id=02YKYPG57B7U9371AGCA1GIZ39

artwisted
March 6th, 2005, 08:36 PM
cool. i just got back form out of town, ill check it later ;) thanks.

Digitalosophy
March 6th, 2005, 10:17 PM
np :kommie: