Action to stop the motion

Specific Q&A about the new Flash export
Locked
dsalcedo
Posts: 4
Joined: Fri Mar 23, 2007 8:01 am

Fri Mar 23, 2007 8:08 am

Hi I need an action to stop the pano motion when I clic a button to load a new pano.swf.

Thanks
dsalcedo
Posts: 4
Joined: Fri Mar 23, 2007 8:01 am

Fri Mar 23, 2007 5:33 pm

I have a virtual tour with 6 nodes and a navigation bar to load each pano, when I set the pano to autorotate the buttons dont load new panos, I have to stop the movement of the pano whit the mouse in order to the action work. What I need is an action to stop the movement of the autopano when the mouse over the navigation bar. I try to put this action:

on (rollOver) {
vr.autorotate = 0;
}

But it dont work

Please help me its urgent.
User avatar
thomas
Chief Gnome
Posts: 2563
Joined: Fri Sep 01, 2006 3:56 pm
Location: Vienna, Austria
Contact:

Fri Mar 23, 2007 7:09 pm

The property is called vr.pano.autorotate so you need to set vr.pano.autorotate=0 and also vr.pano.autoplay=0 may help
MfG, Thomas
dsalcedo
Posts: 4
Joined: Fri Mar 23, 2007 8:01 am

Fri Mar 23, 2007 10:29 pm

Hello, Thomas thanks for your asswer. The code that you sendme stop the motion of the pano, but the buttons no yet load new pano when have this accion:

b1.onPress = function() {
loadPanorama(1);
};

But when I put this other action:

b3.onRollOver = function() {
loadPanorama(1);
};

it always load the pano ok

Another thing that I see is if I click and drag over a button, (before I has take manual control over a pano) I take control over the pano and it respond to the movements tilt up, tilt down, left and rigth) of the mouse wntil I release the mouse.

I beleve that this is the real problem, do you have a code to permit that the buttons work whit the accion onPress or onRelease before I take manual control of the pano?

Thanks for you colaboration, an congratulations for this grate software.
The best part is publish VR to flash, its great!!!
User avatar
thomas
Chief Gnome
Posts: 2563
Joined: Fri Sep 01, 2006 3:56 pm
Location: Vienna, Austria
Contact:

Sun Mar 25, 2007 3:52 am

Hmm.... I don't understand exactly what you mean but maybe the method vr.pano.setLocked() can help. After vr.pano.setLocked(true) the pano doesn't respond to the keyboard an mouse. With vr.pano.setLocked(false) all is back to normal.
MfG, Thomas
waghzen
Posts: 3
Joined: Mon Mar 26, 2007 12:53 pm

Mon Mar 26, 2007 1:00 pm

hello,

I've the same problem. I use the sample "virtual tour on the site". I've tried to change

Code: Select all

vr._lockroot = true; 
to

Code: Select all

vr._lockroot = false;
to permit changing the view before any action on the current view but this operation changes the coordinates of the border ( border_lib).

does anyone have the response to this problem ?

Thanks a lot.
dsalcedo
Posts: 4
Joined: Fri Mar 23, 2007 8:01 am

Mon Mar 26, 2007 6:21 pm

Hello waghzen, the solution is create a Mouse Listener Object that reaction when I click the button:

This is the code to put in a frame:

Code: Select all

// create a mouse listener object to detect mouse clicks
var myMouseListener:Object = new Object();
// define a function that executes when a user clicks the mouse
myMouseListener.onMouseDown = function() {
	_root.cargador.loadMovie(_global.panorama);
	_root.cargador._lockroot=true;
};
And then I create this code to atach the mouse listener to the button when the mouse rollover and remove the listener when the mouse rollout.

This is the code:

Code: Select all

on (rollOver) {
	_global.panorama = "Portada.swf";
	Mouse.addListener(myMouseListener);
}
on (rollOut) {
	Mouse.removeListener(myMouseListener);
	_global.panorama = "";
}
And it works ok always.

I send you a Link to the virtual tour, this gona be published in a CD-ROM
http://www.360grados.ws/LaEncantada/

I wish will that the performance in the pano motion be better but its ok for now.

Somebody knows what are the best setting in pano2qtvr to make a panorama whit fluid motion in swf? The size of my image is 3000 x 1500 pixeles. Maby when swf2pano publish



to player 9?

[/code]
waghzen
Posts: 3
Joined: Mon Mar 26, 2007 12:53 pm

Tue Mar 27, 2007 9:37 am

Hello

It doesn't work !!

please, can you send me your .fla ?

I'll send you my work when it's ready

Thanks a lot.
waghzen
Posts: 3
Joined: Mon Mar 26, 2007 12:53 pm

Tue Mar 27, 2007 11:34 am

My e-mail : waghzen@gmail.com
Locked