RE: [Flashcoders] 360 degree rotation

2011-04-25 Thread Cor
var obj:Sprite = new Sprite();
obj.graphics.beginFill(0xff);
obj.graphics.drawRect(0,0,20,20);
obj.graphics.endFill();

function init():void{
addEventListener(Event.ENTER_FRAME, rotate, false,0,true);  
}

function rotate(e:Event):void{
obj.rotation +=5;
}

//start the show
init();


regards
Cor

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of
a...@yonearth.com
Sent: maandag 25 april 2011 8:45
To: Flash Coders List
Subject: [Flashcoders] 360 degree rotation

Hi all,

 any one have an idea how to create a 360 degree(spin,rotation)
views of a object. in as3.0 . 


thanks,
a
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] 360 degree rotation

2011-04-25 Thread Cor
Oops, forgot to put it on stage:

var obj:Sprite = new Sprite();
obj.graphics.beginFill(0xff);
obj.graphics.drawRect(0,0,20,20);
obj.graphics.endFill();
obj.x = 50;
obj.y = 50;
addChild(obj);

function init():void{
addEventListener(Event.ENTER_FRAME, rotate, false,0,true);  
}

function rotate(e:Event):void{
obj.rotation +=5;
}

//start the show
init();


regards
Cor


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] 360 degree rotation

2011-04-25 Thread amol

thanx Cor

But i need like this

http://www.somersetdesign.co.uk/3drotator.php

regards
amol

- Original Message - 
From: Cor c...@chello.nl

To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com
Sent: Monday, April 25, 2011 12:26 PM
Subject: RE: [Flashcoders] 360 degree rotation



Oops, forgot to put it on stage:

var obj:Sprite = new Sprite();
obj.graphics.beginFill(0xff);
obj.graphics.drawRect(0,0,20,20);
obj.graphics.endFill();
obj.x = 50;
obj.y = 50;
addChild(obj);

function init():void{
addEventListener(Event.ENTER_FRAME, rotate, false,0,true); 
}


function rotate(e:Event):void{
obj.rotation +=5;
}

//start the show
init();


regards
Cor


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] 360 degree rotation

2011-04-25 Thread Cor
Oh, OK look at Swift3D


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of
a...@yonearth.com
Sent: maandag 25 april 2011 9:47
To: Flash Coders List
Subject: Re: [Flashcoders] 360 degree rotation

thanx Cor

 But i need like this

http://www.somersetdesign.co.uk/3drotator.php

regards
amol

- Original Message - 
From: Cor c...@chello.nl
To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com
Sent: Monday, April 25, 2011 12:26 PM
Subject: RE: [Flashcoders] 360 degree rotation


 Oops, forgot to put it on stage:
 
 var obj:Sprite = new Sprite();
 obj.graphics.beginFill(0xff);
 obj.graphics.drawRect(0,0,20,20);
 obj.graphics.endFill();
 obj.x = 50;
 obj.y = 50;
 addChild(obj);
 
 function init():void{
 addEventListener(Event.ENTER_FRAME, rotate, false,0,true); 
 }
 
 function rotate(e:Event):void{
 obj.rotation +=5;
 }
 
 //start the show
 init();
 
 
 regards
 Cor
 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] 360 degree rotation

2011-04-25 Thread Paul Andrews

On 25/04/2011 08:47, a...@yonearth.com wrote:

thanx Cor

But i need like this

http://www.somersetdesign.co.uk/3drotator.php

regards
amol


It's not that complicated.

1) put object on turntable.
2) rotate turntable X degrees
3) If object is not fully rotated, goto 1

Flash loads all images in a stack - one on top of another. Make all 
images invisible. Make the first visible. To rotate just move the 
visibility flag through the stack ( probably best to keep image 
references in an array).

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] 360 degree rotation

2011-04-25 Thread Paul Andrews

On 25/04/2011 12:51, Paul Andrews wrote:

On 25/04/2011 08:47, a...@yonearth.com wrote:

thanx Cor

But i need like this

http://www.somersetdesign.co.uk/3drotator.php

regards
amol


It's not that complicated.

1) put object on turntable.
2) rotate turntable X degrees

Oops, TAKE PHOTO!

3) If object is not fully rotated, goto 1

Flash loads all images in a stack - one on top of another. Make all 
images invisible. Make the first visible. To rotate just move the 
visibility flag through the stack ( probably best to keep image 
references in an array).

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] 360 degree rotation

2011-04-25 Thread Paul Andrews

On 25/04/2011 12:56, Paul Andrews wrote:

On 25/04/2011 12:51, Paul Andrews wrote:

On 25/04/2011 08:47, a...@yonearth.com wrote:

thanx Cor

But i need like this

http://www.somersetdesign.co.uk/3drotator.php

regards
amol


It's not that complicated.

1) put object on turntable.


1b Err..  take PHOTO here! LOL

2) rotate turntable X degrees

Oops, TAKE PHOTO!

3) If object is not fully rotated, goto 1

Flash loads all images in a stack - one on top of another. Make all 
images invisible. Make the first visible. To rotate just move the 
visibility flag through the stack ( probably best to keep image 
references in an array).

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] 360 degree rotation

2011-04-25 Thread amol

Thanx a lot

- Original Message - 
From: Paul Andrews p...@ipauland.com

To: flashcoders@chattyfig.figleaf.com
Sent: Monday, April 25, 2011 8:00 PM
Subject: Re: [Flashcoders] 360 degree rotation



On 25/04/2011 12:56, Paul Andrews wrote:

On 25/04/2011 12:51, Paul Andrews wrote:

On 25/04/2011 08:47, a...@yonearth.com wrote:

thanx Cor

But i need like this

http://www.somersetdesign.co.uk/3drotator.php

regards
amol


It's not that complicated.

1) put object on turntable.


1b Err..  take PHOTO here! LOL

2) rotate turntable X degrees

Oops, TAKE PHOTO!

3) If object is not fully rotated, goto 1

Flash loads all images in a stack - one on top of another. Make all 
images invisible. Make the first visible. To rotate just move the 
visibility flag through the stack ( probably best to keep image 
references in an array).

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders