vantran
01-03-2001, 03:53 AM
Hey Jesse, I tried that out but it did not work.
Here is the origianal function in button behavior
on (release) {
/:startx = getProperty(_target, _x)/40;
/:starty = getProperty(_target, _y)/40;
/:path = getProperty(_target, _target);
}
Now I want to cut those line out and put into a user defined function so I don't have to retype that block for every MC.
like you said earlier, I modified the function call to
on (release) {
/:path = _target;
_root.change(path);
}
function change (path) {
/:startx = getProperty(path, _x)/40;
/:starty = getProperty(path, _y)/40;
/:mymovie = path;
}
Is there an error?
Please help.
Thanks
Here is the origianal function in button behavior
on (release) {
/:startx = getProperty(_target, _x)/40;
/:starty = getProperty(_target, _y)/40;
/:path = getProperty(_target, _target);
}
Now I want to cut those line out and put into a user defined function so I don't have to retype that block for every MC.
like you said earlier, I modified the function call to
on (release) {
/:path = _target;
_root.change(path);
}
function change (path) {
/:startx = getProperty(path, _x)/40;
/:starty = getProperty(path, _y)/40;
/:mymovie = path;
}
Is there an error?
Please help.
Thanks