PDA

View Full Version : Pop up a picture from picMenu


tmerlo
10-12-2010, 04:20 PM
I just started using FPP and Flashificator to make a virtual tour. I'm using picMenu as an interface but I can't seem to figure out how to open an image. Not load another panoramic but just popopen a jpeg (keeping the last pano running in the main window) when you click on one of the picMenu thumbnails.

Is there a way to open a picture from picMenu?

I know it must have something to do with "global.loadpano()" like changing it to "global.picshow("mypic.jpg")" or something like that but I can't find this info anywhere.

Thanks

sachagriffin
10-12-2010, 05:01 PM
Yes exactly.
First you must learn how to use picshow and turn it off and on.
picshow is a hotspot plug. So then you need to learn how to manipulate hotspots.
For example you might have
<spot id=gallery visible=0...
your function would be in picmenu might be. onclick=gallery.visible=1"

tmerlo
10-12-2010, 06:08 PM
Yes exactly.
First you must learn how to use picshow and turn it off and on.
picshow is a hotspot plug. So then you need to learn how to manipulate hotspots.
For example you might have
<spot id=gallery visible=0...
your function would be in picmenu might be. onclick=gallery.visible=1"

Where can I find a tutorial on how to use picshow? The site link I found in the FPP Plugins list doesn't show much in the way of implementation it's more of a description with some API info.

Is there a way to incorporate picshow into Flashificator to make adding it to the project easier?

tmerlo
10-12-2010, 07:45 PM
I got the image to show up when the panoramic loads but I can't get it to be hidden from the start.

I tried adding visible="0" to the <spot area Like this:



<spot
id="pictureC"
visible="0"
url="8011_files/plugins/picshow.swf"
static="1"
align="TC"
salign="TC"
staticX="0"
staticY="100"
width="300"
height="200"
alpha="1"
mouseChildren="1"
blockMouse="1"
onOver="alpha=1,300; pano.disableWheel=1"
onOut="alpha=0.65,600;pano.disableWheel=0"
buttonMode="0"
image="P1"
xmlFile="8011_files/xml/picshow_c.xml"

/>


But it still shows up on page load, it doesn't start as hidden.

Once I figure that out how would I code the picMenu line?

Something like?:


image=Front View|8011_files/plugins/picMenu/pic2.jpg|p1.visible=1

allSaints
10-12-2010, 08:14 PM
If you just want to show an image in your pano, you can make do with an ordinary hotspot:

<spot id="myimage" url="" visible="0" static="1" salign="TC" align="TC" staticX="0" staticY="10" onClick="visible=0" />
In your picMenu XML file you can specify a number of images:
...
<image text="City Hall Tower" url="pics/cityhall.jpg" onClick="myimage.url=pics/cityhall_s.jpg;myimage.visible=1" />
<image text="City Hall Yard" url="pics/cityyard.jpg" onClick="myimage.url=pics/cityyard_s.jpg;myimage.visible=1" />
<image text="The Train Bridge 1" url="pics/arstaviken7.jpg" onClick="myimage.url=pics/arstaviken7_s.jpg;myimage.visible=1" />
...
Clicking a picMenu thumbnail will show that image - clicking the image itself will hide it.

You can check how it looks on this test page (http://wirestam.com/panos/Flash/picMenu/pmtest2x.html).
Tommy

tmerlo
10-13-2010, 12:10 AM
Hi Tommy and thanks for the replay.

There's no way to use picshow with picMenu so the image will have a nice border, pan/zoom features and shrink to fit a specified window size?

allSaints
10-13-2010, 11:13 AM
Sure you can - this page (http://wirestam.com/panos/Flash/picMenu/pictest23.html) uses the picshow2 and the picMenu plugins together.

The FPP XML file (http://wirestam.com/panos/Flash/picMenu/pictest23.xml)
The picMenu XML file (http://wirestam.com/panos/Flash/picMenu/picMenu23.xml)
The picshow XML file (http://wirestam.com/panos/Flash/picMenu/picshow23.xml)

Make sure you have the latest version (V2.19) of the picMenu plugin. It supports the clickDelay="..." attribute, which sets the delay after a thumbnail is clicked before a new click is accepted. This is to protect from double-clicking a thumbnail and has previously been hardcoded to 3 seconds. But in your case, when it's a matter of showing a picture and not loading a pano, something like 0.3s would be more appropriate.

Tommy

Cameleer
10-13-2010, 11:46 AM
tmerlo

I’m using picMenu and tooltips on my tour.
When mouse over the picMenu with small numbered images I have popup photos that will display along with the tooltips above them. And I do have borders with a small drop shadow around the images.
You can see it here.
Tiger Tour (http://www.indiavrtours.com/cats/test.html)

This is the regulator picMenu, I’m just using small numbered images on it and large pop-up photos. There's a lot you can do with this.

Is this doing something like what you are looking for?

Roger Berry

christophe
10-13-2010, 01:49 PM
That's a very good way to use it, Roger.

Congratulation for your imagination.

christophe
10-13-2010, 01:49 PM
That's a very good way to use it, Roger.

Congratulation for your imagination.

tmerlo
10-13-2010, 03:26 PM
Wow Roger! That's great. Way beyond what I'm trying to do.

I almost got it doing what I want. The only problem is I want to be able to re-open the same picture I just closed.

I'm still using picshow(1 I guess I should call it) and not 2. I couldn't figure out how to get the close(X) and the zoom controls to show up using picshow2. showControls="1" didn't do it.

I had to set the image property in the hotspot to empty to get it to not show anything on startup. visible="0" doesn't work. I could also do the same by setting the alpha to 0.

So the only thing I need to figure out is how I can make it so I can select the same image again if I close the picshow window.

allSaints
10-13-2010, 03:40 PM
The picshow2 plugin doesn't have any close or zoom controls. These functions are handled by FPP commands.

In the latest picMenu plugin you can open the same image again by setting clickMode="1".

tmerlo
10-13-2010, 04:29 PM
Changing the clickMode to 1 didn't work.

You can view the panoramic I'm working on here:

http://www.tmerloservers.com/testpano.html

allSaints
10-13-2010, 05:18 PM
But the 2.17 version of the picMenu plugin that you are running doesn't support the clickMode="..." attribute. It was added in the 2.18 version.

tmerlo
10-13-2010, 05:53 PM
But the 2.17 version of the picMenu plugin that you are running doesn't support the clickMode="..." attribute. It was added in the 2.18 version.

Thanks! That did it. I never realized that I was using an older version.

I really appreciate you taking the time to help me out.