however i need this code to go into a class defenition which
extends movie clip. but there seems to be no easy way to do this as
the way the above code is set out is not allowd in a class
defenition. so my question is how can i rearange this code to work
in a class defenition so that other methods of that class can use
it in tweens?