PDA

View Full Version : Links between panos not working


Juraj Spaldon
11-25-2009, 08:47 AM
Hi everybody,

I just try to put together my first tour made with FPP, but I can't get it to work correctly. There are 4 panos and they should be linked together with Tommy's PicMenu plugin. You can check individual panos here:

http://www.3dpanoramy.sk/klinika/izba_1.html
http://www.3dpanoramy.sk/klinika/izba_2.html
http://www.3dpanoramy.sk/klinika/izba_3.html
http://www.3dpanoramy.sk/klinika/recepcia.html

The PicMenu loads correctly, but the links don't work at all. I know it's my fault, but I don't understand where the mistake is. Maybe syntax error in onClick function or maybe the paths to needed files isn't correct.

Could you help me, please?

Thanks

Juraj

allSaints
11-25-2009, 09:29 AM
Juraj,

remember when you load a new pano with a new xml file, that external plugins from the previous xml file are still there. They don't unload, so these "layers" are still occupied. That means external plugins in the new xml files are probably not loaded.


Tommy

Juraj Spaldon
11-25-2009, 09:43 AM
Tommy,

Is there any solution of this problem?

In my first attempts with FPP I have used

#onClick="pano.leash=free;loadPano(restauracia3.swf&xml_file=restauracia3.xml)"#

to load a new pano with it's own xml file by clicking a hotspot image.
(http://www.3dpanoramy.sk/nbs/restauracia2.html).

I have tried the same solution with your PicMenu plugin in my recent project, but no success.

Juraj

allSaints
11-25-2009, 11:07 AM
Juraj,

may I ask why you load a new xml file? They seem to be very similar, with only a couple of hotspots that is the difference. Then it seems to be much easier to use the linked=..." attribute in the hotspots.

I can also see with the Flash Debug Player that the "Hotovo" and "Prerusenie" functions are missing.


Tommy

Juraj Spaldon
11-25-2009, 12:02 PM
Tommy,

This is my first project with FPP so I do it this way - maybe too complicated for xml gurus - but I don't know how to do it more simple way.
Anyway, thanks for your tip with LINKED attribute. I will try it.

Juraj

allSaints
11-25-2009, 12:51 PM
Well, the reason I asked is because I think the picMenu plugin is trying to re-initialize when the new xml is loaded and I don't think it can handle that.

You have version 2.02 of the picMenu plugin, but there is a newer version (V2.05) that is modified to handle reading a new XML file.


Tommy

Juraj Spaldon
11-25-2009, 05:45 PM
Tommy,

You are GREAT WIZARD. I have downloaded v2.05 of your PicMenu plugin and it works! There are still some motion tweens issues, but I think I will be able to solve it. The main problem - linking panos - is solved.

Thank you for your help.

Juraj

Juraj Spaldon
11-28-2009, 11:59 AM
Tommy,

One more question about picMenu plugin. How to make it appear only after a few clikcs or steps.

I would like to have this order in my first pano of the tour:
1. loading of pano starts + logoMeter dispalys
2. after loading is completed dialog appears (postCommand=external.dialog.visible%3D1)
3. on selecting one of possibilities htmlbox appears
4. on clicking closing spot htmlbox closes and only NOW picMenu choice field appears.

I have tried to modify code for closing the htmlbox from this:
<spot id="zatvor" url="foto/zavriet.png" visible="0" alpha="0.65" static="1" scale="0.10" salign="CM" align="CM" staticX="290" staticY="-270" onClick="Pomoc.visible=0,300;zatvor.visible=0,300;Help.visi ble=0,300 />

to this:
<spot id="zatvor" url="foto/zavriet.png" visible="0" alpha="0.65" static="1" scale="0.10" salign="CM" align="CM" staticX="290" staticY="-270" onClick="Pomoc.visible=0,300;zatvor.visible=0,300;Help.visi ble=0,300;external.picMenu.visible=1" />

together with setting up choiceField of picMenu to "visible=0", but it didn't work. I have also tried "external.picMenu.choiceField.visible=1" as well as "external.choiseField.visible=1" but no success.

So how to set it up the way I want it?

www.3dpanoramy.sk/klinika/recepcia.html

Juraj

uudu
11-28-2009, 02:07 PM
I think, I know where is your problem as fight with similar few days ago.
After "external" command don't use Capitals.
So - instead of external.picMenu.visible=1
write - external.picmenu.visible=1

Hopefully this will solve at least some of your problems.
uudu

Scott Witte
11-28-2009, 05:23 PM
After "external" command don't use Capitals.
So - instead of external.picMenu.visible=1
write - external.picmenu.visible=1


TRUE! and very frustrating. Caused me a hair pulling day to figure out. The problem is that when a plugin is registered with FPP the name is automatically converted to lower case. However, the external command doesn't do the same so you MUST give the name only in all lower case!

I pointed it out to Denis a year ago. I suggested he just .toLowerCase() "external" commands the way he does when passing parameters. He said he would think about it. Hopefully this irritation is gone in v3.

Juraj Spaldon
11-28-2009, 07:04 PM
Thanks for your tip,

but, I have just tried

"external.picmenu.visible=1" as well as
"external.choicefield.visible=1" and
"external.picmenu.choicefield.visible=1"

but none of them does what I want.

Juraj

allSaints
11-28-2009, 10:48 PM
Juraj,

in your plugin xml file "xml/miniatury_r.xml", you should change:
<choiceField visible="0"
to:
<choiceField visible="1"
If it is set to "0" you tell the plugin that you don't want any choiceField, so you have to set it to "1".

It will NOT be shown at start because you have set showAtStart="0". So when you want to show it, you execute: external.picmenu.visible=1


Tommy

Juraj Spaldon
11-29-2009, 07:24 AM
OK, changing showAtStart="0" to showAtStart="1" makes THUMBNAILS visible from the start - that's what I don't want. So I let it set to "0".

choiceField visible="0" makes choise field invisible from the start - that's what I want. So I let it set to "0".

onClick="Pomoc.visible=0;zatvor.visible=0;Help.visible=0;ex ternal.picmenu.visible=1" should make 4 things :

1. it should make Pomoc htmlbox invisible - it works
2. it should make picture of zatvor spot invisible - it works
3. it should make Help htmlbox invisible - it works
4. it should make choiceField of picMenu visible - but it doesn't work

I have tried to use substitution for "=" like this "external.picmenu.visible%3D1" but no change.

Juraj

allSaints
11-29-2009, 09:16 AM
Juraj,

you did not understand me.

I did not say you should set showAtStart=1. I said you have to set choiceField visible="1", otherwise you will never get any choiceField.

I admit it can be a bit misleading, but the choiceField visible="1" tells the plugin at initialization time that you want it to create a choiceField. And there is no possibility to create it later. You use the parameters "collapse/expand" (or the setting in menuHide) to show/hide the thumbnails, and the parameter "visible" (external.picmenu.visible=T) to show/hide the complete menu - including choiceField.


Tommy

Juraj Spaldon
11-29-2009, 11:15 AM
Tommy,

Thanks for your help, now I have solved it.
The problem was that I had not set any parameter for visibility of picMenu itself in <picMenu> tag. And the default state is visible="1" I suppose.

So when I added visible="0" to <picMenu> tag, now it is invisible at the start and changes to visible just after clicking corresponding spot.
Great!

Thanks

Juraj