Go Back   Forums > Talk > General FPP Discussion

Thread Tools Display Modes
Old 07-15-2007, 07:22 AM
asmilie2b3 asmilie2b3 is offline
Junior Member
Join Date: Jul 2007
Posts: 29
Downloads: 0
Uploads: 0
Default Possible to pass plugin with direct url?

New to FlashPanorama and loving it.

A question. I want to use the borders plugin and limit the fov, but I want to link directly to the swf using no xml or html.
Can the borders plugin be parsed in the URL, and the tilt and pan settings?
Would anyone be able to show me a sample syntax?

much appreciated

Reply With Quote
Old 07-28-2007, 01:53 PM
Denis Denis is offline
Site admin
Join Date: Nov 2006
Posts: 355
Downloads: 0
Uploads: 0


You can use undocumented (because beta status) property xml_text to pass XML without separate XML file:
You can use it in
1. direct swf link
2. HTML (together with flashvars parameter, for example)
3. embedPano example to set parameters easily.
Reply With Quote
Old 08-04-2007, 01:28 PM
asmilie2b3 asmilie2b3 is offline
Junior Member
Join Date: Jul 2007
Posts: 29
Downloads: 0
Uploads: 0

With Denis's help I was able to get this to work. So I thought I should post it in case anyone else wants to do something similar. Seperate XML files are also fine, but when there is a need to call from a URL only, this is very convenient.

So to load the borders plugin, and then limit the fov:<panorama><parameters>panoName= images/pano1;layer_1=files/borders.swf</parameters><borders>pan_min=-60;pan_max=60;tilt_min=-20;tilt_max=20</borders></panorama>

Here is the URL after being URL safe encoded:
ttp:// eters%3EpanoName=images/pano1;layer_1=files/borders.swf%3C/parameters%3E%3Cborders%3Epan_min=-60;pan_max=60;tilt_min=-20;tilt_max=20%3C/borders%3E%3C/panorama%3E

(I deleted an h from the http as otherwise the forum cut the url automatically for some reason)

I found with this test something convenient. I was wrestling with a website to conver the URL to URL safe. However I found if I just copy into Firefox and load the URL it is encoded automatically, so I can just copy and paste out of FF.

So the above shows a basic usage of the XML_Text parameter. It could be easily adapted to add the other plugins, set initialview, loading anim, etc.

Have fun!

Last edited by asmilie2b3; 08-04-2007 at 01:59 PM.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT. The time now is 06:59 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.