A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Click and drag a product image 360

  1. #1
    Senior Member
    Join Date
    May 2000
    Location
    Bombay, India
    Posts
    926

    Click and drag a product image 360

    Hi All....

    Coming here after a long time... I need serious help.

    I Have a project on hand that needs images to be rotated like in this:

    http://www.photographer-commercial.n...portfolio.html

    Scroll down to 360 Photography Portfolio.

    Select an image from the right side.

    You can click and drag - There are no buttons . How can one do this?

    I have shot the product on a turntable and have 36 images and also created the rotation....but my file uses buttons.... I want to do as shown in the reference website.

    Any help will be welcome

    Thanks

    Ranten
    RanTen
    Unrepentant Rebel & Boat Rocker
    http://ranten.celltrix.com

  2. #2
    Member
    Join Date
    Aug 2012
    Posts
    55
    it's a jquery plugin - loopedslider - check it out

  3. #3
    Senior Member
    Join Date
    May 2000
    Location
    Bombay, India
    Posts
    926
    Huh? What am I supposed to make of that?
    RanTen
    Unrepentant Rebel & Boat Rocker
    http://ranten.celltrix.com

  4. #4
    Senior Member
    Join Date
    Mar 2006
    Posts
    139
    i'ts not jquery...


    you could try something like this...

    Code:
    onClipEvent(mouseDown){
    
    	spinSpeed = 5;
    
    	latestX = _xmouse;
    
    	checkX =  function (dx, oldVal, newVal)  {
    	
    		if (oldVal != undefined) {
    			if (latestX-newVal<-30/spinSpeed) {
    				latestX = _xmouse;
    				if (_currentFrame == 1) {
    					gotoAndStop(_totalframes);
    				} else {
    					prevFrame();
    				}
    			} else if (latestX-newVal>30/spinSpeed) {
    				latestX = _xmouse;
    				if (_currentframe == _totalframes) {
    					gotoAndStop(1);
    				} else {
    					nextFrame();
    				}
    				
    			}
    		}
    		return newVal;
    	};
    	
    	this.onMouseMove = function() {
    		xdir = _xmouse;
    	};
    	
    	this.watch("xdir", checkX);
    
    }
    
    onClipEvent (mouseUp) {
    	this.unwatch("xdir");
    }

  5. #5
    Senior Member
    Join Date
    May 2000
    Location
    Bombay, India
    Posts
    926
    Thanks pumpkin....will give it a shot.
    RanTen
    Unrepentant Rebel & Boat Rocker
    http://ranten.celltrix.com

  6. #6
    Senior Member
    Join Date
    May 2000
    Location
    Bombay, India
    Posts
    926
    Hey Pumpkin....

    Thanks a ton - that script works beautifully. Thanks once again mate.
    RanTen
    Unrepentant Rebel & Boat Rocker
    http://ranten.celltrix.com

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