PDA

View Full Version : scale function help



markhegz
January 18th, 2004, 05:13 PM
I am using the folowing as on a movie clip to scale it:
onClipEvent(load){
targe_width = _width;
targe_height = _height;
}
onClipEvent(enterFrame){
_width = _width += (targe_width - _width)/3.6
_height = _height += (targe_height - _height)/3.6
}


this as works fine but i have 30 clips that i want to apply it too. how can i turn this into a function i.e
function scale(targe_width, targe_height);


so on each clip i can invoke the function by calling something like
scale(50, 50);

im sure its pretty easy does anyone have any ideas?

eyezberg
January 18th, 2004, 06:15 PM
http://proto.layer51.com/l.aspx?p=1

almost all the way down, look for scale and pick ;)