PDA

View Full Version : Help To Close A Window


mano
12-04-2007, 04:43 PM
HELLO,

i'm not a FLASH writer
i make a bouton
and i can't make it close the window of the panorama
i can't use it to open a new page of my site

<spot static="1" salign="BC" staticX="-225" staticY="-40" url="images/retour.png" onClick="openUrl:plan.html"/>

the page is called plan.html
and what is the function to close a window ?

thanks

Stephmw
12-04-2007, 05:42 PM
Hi mano,

This is due to a slight typo in the codumentation, and your xml - easily fixed though:


<spot static="1" salign="BC" staticX="-225" staticY="-40"
url="images/retour.png"
onClick="openUrl(plan.html)"
/>


will open a new window on plan.html

I usually just replace the current contents with this, using the target parameter:


<spot static="1" salign="BC" staticX="-225" staticY="-40"
url="images/retour.png"
onClick="openUrl(plan.html,_self)"
/>


Hope this helps!

mano
12-05-2007, 01:55 PM
thanks Stephmw

it's ok to go to my page
but what should i do to close the window ?

Stephmw
12-07-2007, 08:58 AM
No, I don't - hopefully someone else will though!

It'll probably involve some small javascript (see elsewhere on this forum) that FPP can talk to to accomplish this.

cheathamlane
12-07-2007, 01:33 PM
thanks Stephmw

it's ok to go to my page
but what should i do to close the window ?

This is answered in your other post, I believe:

http://flashpanoramas.com/forum/showthread.php?t=727&highlight=close.window


Cheers,