dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Object-VR in Flash

  1. #1
    Junior Member
    Join Date
    Jan 2006
    Posts
    2

    Object-VR in Flash

    Hello,
    I tried the great tutorial Object VR in Flash by Tim Murray (http://www.flashkit.com/tutorials/3D...-989/index.php) where I can easily rotate objects. Now, the object always rotates when I go over the image sequence. Do you know the coding, that it just turns when I press and hold the left mouse-button?

    Thanks a lot...
    Michael

  2. #2
    Junior Member
    Join Date
    Jan 2006
    Posts
    2
    Iam not sure if this solves your problem, but there is a similar utility to rotate 360 / 3D objects. Try to check http://www.yofla.com/flash/3d-rotate/

  3. #3
    Flash Video Moderator Wheels's Avatar
    Join Date
    Dec 2000
    Location
    Minneapolis
    Posts
    1,590
    Replace the code on the driver with this:
    Code:
    onClipEvent (mouseDown) {
    	//anticlockwise
    	this.onEnterFrame = function() {
    		framePos = int(_xmouse/100*_parent._totalframes);
    		if (framePos<0) {
    			_parent.gotoAndStop(_parent._totalframes+((framePos+1)%_parent._totalframes));
    		} else {
    			_parent.gotoAndStop(1+(framePos%_parent._totalframes));
    		}
    	};
    }
    onClipEvent (mouseUp){
    	this.onEnterFrame = undefined;
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center