Forums  

Go Back   Forums > Talk > General FPP Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 07-06-2008, 05:52 PM
cheathamlane cheathamlane is offline
Senior Member
 
Join Date: Mar 2007
Location: Berkeley, California, USA
Posts: 774
Downloads: 0
Uploads: 0
Send a message via AIM to cheathamlane
Default Embed Pano 101 (put FPP into a Flash container!)

Hi Folks:

I have recently completed a tutorial and code example on using an "embed pano" style setup with FPP. That is, how to load your FPP presentation into a larger Flash container/presentation.

Excerpt below, and direct link at:
http://flashpanos.com/tutorials/patr...lash-container

Enjoy!

Quote:
So, you want to make a Flash container with all your own graphics and buttons and load your Flash Panorama Player presentation into it? Here you go... a quick "embed pano 101". Smile

What you'll end up with is a "skinned" player which displays your FPP panorama with an irregular outline (not a rectangle!) -- including buttons to load panoramas, buttons to pan/tilt/zoom, and a button to "go fullscreen".

Topping it all off you'll be able to go fullscreen and leave some of your buttons & graphics behind, then leave fullscreen and get your buttons back. This allows you to display what you want when you want it. The FPP XML in this example will show some thumbnails in fullscreen, which display larger photos.

As a bonus in this example, we will load lower resolution panoramas into the player when not in fullscreen; then, when going fullscreen, we will load higher resolution panoramas. Once loaded, these higher resolution panoramas will stay in the cache and be seen in fullscreen and not fullscreen. So, there's a lot packed into this 'little' example!
__________________
Patrick
http://cheathamlane.net
--
Tutorials: Embed Pano 101, Pano auto-presentation
Reply With Quote
  #2  
Old 07-07-2008, 01:28 PM
Jareish Jareish is offline
Member
 
Join Date: May 2008
Posts: 56
Downloads: 0
Uploads: 0
Default

Good guide Thanks for posting this. I have a question though. The tour you guys made for wearemanifesto http://www.cheathamlane.net/tests/manifesto/
has a series of buttons to the left, linking to the different pano's.

When clicking those buttons it loads the different pano's. But what if a person is inpatient or clicked the wrong pano and quickly presses another button. It forgets to remove the one currently loading and starts loading the newly pressed one. You'll then have 2 pano's (or 10 if you click quickly ;p) You have control over the last clicked one and the other one sticks in place.

How can this be resolved? (Either disable clicking while loading or remove the old one properly). ATM it only removes a pano when its fully loaded. I want to make my tour "idiot"proof.

thanks
Reply With Quote
  #3  
Old 07-07-2008, 03:27 PM
cheathamlane cheathamlane is offline
Senior Member
 
Join Date: Mar 2007
Location: Berkeley, California, USA
Posts: 774
Downloads: 0
Uploads: 0
Send a message via AIM to cheathamlane
Default

Hi Jareish:

You've got me to rights!

Code:
		panorama.pano.remove();
			panorama.loadPanorama("pano.swf?panoName="+thePanoToLoad);
That code will absolutely do the trick (may throw an error if you are using a debug player).

I'll need to look into a better way to handle it -- I noticed that I wasn't also tracking the current panoNames of the small versions...

Please feel free to leave comment over at the actual post at flashpanos.com; much easier to read and see the code at the same time.

Cheers,

Patrick
__________________
Patrick
http://cheathamlane.net
--
Tutorials: Embed Pano 101, Pano auto-presentation
Reply With Quote
  #4  
Old 07-07-2008, 06:08 PM
cheathamlane cheathamlane is offline
Senior Member
 
Join Date: Mar 2007
Location: Berkeley, California, USA
Posts: 774
Downloads: 0
Uploads: 0
Send a message via AIM to cheathamlane
Default

Quote:
Originally Posted by Jareish View Post
How can this be resolved? (Either disable clicking while loading or remove the old one properly). ATM it only removes a pano when its fully loaded. I want to make my tour "idiot"proof.
Hi again Jareish:

I fixed that!

Looks like loadCompleted is not reliable to watch, so I'm now watching for percentLoaded etc.

See my solution over at:
http://flashpanos.com/tutorials/patr...lash-container
__________________
Patrick
http://cheathamlane.net
--
Tutorials: Embed Pano 101, Pano auto-presentation
Reply With Quote
Reply

Tags
cheathamlane, embed pano, flashpanos.com, tutorial

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 10:28 AM.


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