Hello,
(Just need to note that I am a total beginner at action scrip so forgive me if I make no sense at all)
I’m trying to recreate the effect in the link below, where a viewer can mouse click on the object and rotate it through the x axis with a mouse drag.
http://bmc.erin.utoronto.ca/~enid/interactivethyroidectomy/
I’ve managed to put something together through reading many other folks posts on this website and its working generally OK - but the I need to make the mouse more sensitive (at the moment to turn -x (left) I have to click and drag practically off the window before it even starts turning).
Also I need to figure out how, if I mouse click and drag to the last frame that it will start again at the first frame. I assume I have to leave a blank frame at the start of the time line and say
Go To “start”
Then call the actual starting frame of my animation “next”
Then call the last frame “start”
and write underneath
Go To “next”
Or something like that - but that didn’t work so I’m not sure how to do it.
Basically this is where I’ve got up to.
I made a movie clip and in the movie clip are 400 images of a complete 360 degree view of the bones of the shoulder I rendered out of Maya.
Then back on scene 1 I’ve put this code on top of the movie clip
onClipEvent(load){
gotoAndStop(1)
}
onClipEvent(enterFrame){
if ( Dragg==true){
if (_root._xmouse > _x){nextFrame()}
else if (_root._xmouse < _x){prevFrame()}
else {
if ( _currentFrame<30){nextFrame()}
if ( _currentFrame>30){prevFrame()}
}
}
}
So that’s it - but it needs refining. Better mouse movement and to make it go back to frame one when it comes to frame 400.
I’d really appreciate any help I can get.
Thank you very much in advance
Catherine