Page 1 of 1

Set size of Pano VR Tour to screen size

Posted: Wed Oct 10, 2007 10:34 pm
by gerardjuarez
Hello, not much the flash expert buy i've been using Thomas' code for the virtual tour of the park (pavilian & fountain). The problem I'm having is that I use the fullscreen html mode to go 100% x 91% of the users webpage, thus leaving a little room at the bottom for my logo etc.

http://panomotionstudio.com/flash/Touri ... arden.html

How do I code my flash to do the same...take the dimensions of the users screen and go 100% x 91% so it fits fullscreen? The following piece of code from his demo virtual tour keeps it locked in at my original swf size (1024x512), thus not really 'fullscreen'.

myListener.onLoadStart = function () {
var filename:String;
// Set the dimentions and position of the pano
vr.window_width=1024;
vr.window_height=512;
vr.window_x=0;
vr.window_y=0;

Any ideas? Thanks.
-G

Re: Set size of Pano VR Tour to screen size

Posted: Sun Feb 03, 2008 12:31 pm
by Brian
Gerad,

I might be missing the point, but isn't this more to do with how you export you final Flash movie to html. I use the % method in the publishing definition so that if the user resizes their browser window, the whole movie resizes to follow that and nothing is clipped or lost. http://www.briansutton.net shows you that...

or did I miss the point?

I use the same park pano originally to render my panos, but with a lot of changes to use xml to find the panos for each tour and to define the hotspot locations and actions.

Brian