Multimedia-Stock.com - advertise
MM Categories_
 
Multimedia
of the day_
Uploaded by
reznor70
Rating: 0.00
 
Artist
of the week_
Uploads: 56
Rating: 6.00
 
 
Multimedia-Stock.com - banner
Multimedia-Stock.com - banner
RSS Feed | About | Blog | News | Forum | Artists | Links | FAQ | Promote us | Contacts

Recent blog's

3D Orbit rotator

mahi blog, Dec 21, 2009 06:00 AM

Hello Friends

Now again here with a nice code for flash 3D Orbit rotator.

Start from here:

Create a movie clip in flash, press f9 after selecting the movie clip.

paste below code

/////////////////////////////////////////

onClipEvent(load){

y=100;

speed=5;

radius=100;

xcenter=250;

ycenter=200;

zcenter=100;

angle=0;

fl=150;

}

onClipEvent(enterFrame){

z=Math.sin(angle*Math.PI/180)*radius+zcenter;

scale=fl/(fl+z);

x=Math.cos(angle*Math.PI/180)*radius;

_x=x*scale+xcenter;

_y=y*scale+ycenter;

_xscale= _yscale = scale*100;

angle+=speed;

if(angle>359){

angle-=360;

}

}

////////////////////////////////////////

Now you have done

Do this by yourself.

This is interesting. Try once

Regards

Mahi

Read all blogs

 
USER login_
Username:

Password:
remember me
Thank U 4 using MMS!
Multimedia-Stock.com - advertise
Multimedia-Stock.com - banner