[quoted text, click to view] joe28sfl wrote:
> I am attempting to create a virtual tour in Flash for showing pictures of
> houses. I have figured out how to get the picture to move based on mouse
> movement but I am having the following two problems: 1: How do I duplicate and
> position multiple copies of the listing picture movie clip? I have an initial
> move clip that loads in the jpg image of the property. When the picture slides
> to the end I need to have a duplicate of it positioned flush against it's edge
> so that it appears to spin in a circle. I was trying to use
> mc_movieClip.getBounds(_root) and and mc_movieClip.xMax to find the x position
> of the initial movie clip but it gives me '6710893.35' instead of an x
> coordinate. 2: How do I mask the multiple copies of the movie clip? The
> initial movie clip has a mask layer on it that hides the portion of the image
> that is off screen. When I create the duplicate copies of the image movie clip
> they are not masked like the original image. I have posted the swf file in its
> current form to
http://www.realtycds.com/flash/virtualWalkthrough.html to show
> what I am talking about. Thanks for the help
One of my favorite subjects , been doing panoramic for all kind of companies from
hotels to estate and featuring tourist destinations.
There is lots and lots of ways to approach that.
Let me first show you the easiest pano with minimum control , just the mouse left right :
http://www.flashfugitive.com/cgi-bin/panorama360.swf First import your image and make movie clip out of it - click it and hit F8 - new movie clip.
Than right click it and go to properties - type IMG in the instance name box.
This is its instance name .
Now again , click it and hit F8 , make one more movie clip out of it .
And again , right click , instance name MC
So we end up having MC movie clip with IMG movie clip instance .
All you need now is right click your newly made MC - actions - and paste
onClipEvent (load) {
Xwidth = _root.mc._width;
for (i=1; i<4; i++) {
img.duplicateMovieClip("img"+i, i);
}
}
onClipEvent (enterFrame) {
Xpos = _root.mc.img1._x;
k = Xpos-_root.mc._xmouse/20;
_root.mc.img1._x = k;
_root.mc.img2._x = k+Xwidth;
_root.mc.img3._x = k-Xwidth;
if ((Xpos<-Xwidth) or (Xpos>Xwidth)) {
_root.mc.img1._x = 0;
_root.mc.img2._x = Xwidth;
_root.mc.img3._x = -Xwidth;
}
}
You could place it within HitTest to limit the scroll only
to the view area so it does not scroll when you outside the clip.
onClipEvent (load) {
Xwidth = _root.mc._width;
for (i=1; i<4; i++) {
img.duplicateMovieClip("img"+i, i);
}
}
}
onClipEvent (enterFrame) {
if (hitTest(_root._xmouse, _root._ymouse, false)) {
Xpos = _root.mc.img1._x;
k = Xpos-(_root.mc._xmouse/20);
_root.mc.img1._x = k;
_root.mc.img2._x = k+Xwidth;
_root.mc.img3._x = k-Xwidth;
if ((Xpos<(-Xwidth)) or (Xpos>Xwidth)) {
_root.mc.img1._x = 0;
_root.mc.img2._x = Xwidth;
_root.mc.img3._x = -Xwidth;
}
}
}
There is very nice component you can download, load photos dynamically for you
and allow to load in run time on button click so you can make "hot spots"
on your panorama.
http://www.sephiroth.it/file_detail.php?id=101 (totally free one)
lots of tips in the Users' Comments (57)
read it .
I also noticed due to the you could use panorama heads. You might not need it and often ,especially
for outdoor shots its not required, but indoor you experience very visible barrel distortion and
chromatic aberration. When windows and ceiling (straight lines) become arcs .
The parallax error is due to lens not rotating exactly around the 'nodal point' of the lens.
With panorama head you are able to adjust the camera position relative to the turning axis.
For more info you can check the following article :
http://www.htu.at/~sascha/ptguide/01.htm#04
Here you will find home made pano head :
http://www.erik-krause.de/panohead/ Personally I'm not clever with aluminum nor do I even have screwdriver at home so I bought few :
(great choice and reasonable price)
http://www.kaidan.com/Detail.bok?no=52 also
http://www.manfrotto.com/product/itemlist.php3?manufid=1§ionid=11 My personal favorite , manfrotto has great hardware . Worth to invest if you going to
use it regularly .
I have some pano work I can't upload here because it was client work but can explain in details
in private mail.
http://www.Flashfugitive.com/ang-zhang/pano/PanoSample.zip It's an exe file , 600 KB projector made in flash and compress and tuned with Jugglor.
If you need any info in regard to that file , feel free to contact me at
"runner AT flashfugitive DOT com"
--
Happy New Year and all the best to all of you guys !!!
<urami>
http://www.Flashfugitive.com </urami>
<web junk free>
http://www.firefox.com