PDA

View Full Version : actionscript controlled movement



shuga
January 29th, 2003, 03:10 PM
is it possible to write a function to move an object and then call that function on a clip event

for instance

function (bounce){
script;
script;
}

and then call it by saying

on(mouseOver){
this.bounce;
}

or something like that

an example of how this might work would be greatly appreciated

thanks

Jubba
January 29th, 2003, 03:13 PM
FUNCTION:

nName = function(){
//script
}


BUTTON:

on(rollOver){
nName()
}

shuga
January 29th, 2003, 03:29 PM
thanks :eye: