As far as I know, the Math methods and the onClipEvent event handler are new to Flash 5, so they should work. There are a few things to remember, however.
This code must be in a MC. The MC must be in the timeline.
All the variables you have are local variables. Their scope is the MC. Keep that in mind when referencing.
zposition is never initialized.
The second last line doesn’t need to be in the enterFrame event handler (onClipEvent). It only needs to be run once, so you can put it in the load event handler (onClipEvent).
xposition and yposition keep changing as degree changes, but none of these variables are used to change _x, _y, _xscale, or _yscale (btw, you have _xscale twice…).
It looks to me like you are trying to build a mini-3D engine here. I’ve built a few. If you need further help, just ask. But without knowing exactly what you are doing, and what else is going on in your FLA, I can’t really help much more.
found it at actionscripts.com and couldnt seem to make it work
it is the code to make a ball rotate around either the x or the y axis
i got it to work
■■■■ variables
can someone please tell me how to make like a triangular path with a ball