Author: Chumpitas
Date released: 03/05/2007
Name: 360 view

Make 360 view in just few minutes.
 

[Flash] Tutorial #6 - 360 view

 
 

Software: Macromedia Flash 8
Time: 5 minutes

Download final .fla file


1. Open new file

 

2. Import your picture on stage (ctrl + R)

3. Convert picture to Movie Clip (F8)

4. Double click on picture

5. Duplicate your picture and put it on the end of original picture

6. Expand Layer 1 up to frame 50

7. Convert picture to Movie Clip (F8)

8. Make keyframe on frame 50.

9. On frame 50 move picture like on picture below (start of second picture must be on start of flash background)

10. Set Motion Tween somewhere between 1st and 50th frame

11. Go back to root

12. Add new layer

13. Write this text in actionscript window (on first frame of new layer)

frame = 1;
_root.onEnterFrame = function(){
total = photos._totalframes;
if (_root._xmouse > 400) {
step = 1;
} else if (_root._xmouse < 100) {
step = -1;
} else {
step = 0;
}
frame = frame + step;
if (frame > total) {
frame = 1;
} else if (frame < 1) {
frame = total;
}
_root.photos.gotoAndStop(frame);
}

 

Numbers in this line "if (_root._xmouse > 400) {" depends of widht of your flash movie. It should be 100 less that width of your movie. If flash document is 400*400 it should be 300.

13. Selct picture on Layer 1 and set instance name: photos

14. We are done. Test your movie

 
Untitled Document

Links:


Donate, and help us to exist.

 

 


5. If you have some questions about this tutorial, please contact me: chumpitas@gmail.com