Forums  

Go Back   Forums > Talk > General FPP Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 11-10-2008, 11:13 AM
agnosix agnosix is offline
Junior Member
 
Join Date: May 2008
Posts: 12
Downloads: 0
Uploads: 0
Default Transition problems. Bug??

Hi!!

I´m developing this app:
http://themovievirtual.com/pruebas/ejemploLandarbide/

If you load pano by pano slowly with the menu on the right, no problem, but if you try to load a pano while the transition, the transition between panos will never end. Crash!

Any ideas?

Thanks in advance.
Reply With Quote
  #2  
Old 11-10-2008, 11:22 AM
nidrig nidrig is offline
Senior Member
 
Join Date: Sep 2007
Location: Switzerland
Posts: 147
Downloads: 1
Uploads: 0
Default

hi,

Your navigation menu on the right is a smart plugin (afcomponents based, actually).

Thus within this plugin, you have to check if fpp is either loading another pano or within a transition. If so, your new "loadPano event" must be rejected.

By retrieving the pano2.panoName parameter, you'll be able to see if fpp is within a transition. If in transition, this parameter isn't null.

Look at the "controller.fla" file within fpp distribution and search for panoBusy parameter.

cu
Reply With Quote
  #3  
Old 11-10-2008, 01:43 PM
agnosix agnosix is offline
Junior Member
 
Join Date: May 2008
Posts: 12
Downloads: 0
Uploads: 0
Default

Thanks nidrig!

I´m going to try it right now.
Reply With Quote
  #4  
Old 11-10-2008, 01:54 PM
Jareish Jareish is offline
Member
 
Join Date: May 2008
Posts: 56
Downloads: 0
Uploads: 0
Default

I've got the same problem, only I don't use the localConnection but the embedpano type. Is there a way to scan if a transistion is busy? because I think panoBusy is a callback from localconnection and not something I can access with embedpano. or do I need to scan with a timer if pano.panoName == null?
Reply With Quote
  #5  
Old 11-10-2008, 02:06 PM
nidrig nidrig is offline
Senior Member
 
Join Date: Sep 2007
Location: Switzerland
Posts: 147
Downloads: 1
Uploads: 0
Default

Quote:
Originally Posted by Jareish View Post
I've got the same problem, only I don't use the localConnection but the embedpano type. Is there a way to scan if a transistion is busy? because I think panoBusy is a callback from localconnection and not something I can access with embedpano. or do I need to scan with a timer if pano.panoName == null?
Hi,

panoBusy is not a callback, its a user defined boolean var which value depends on pano2.panoName parameter value. If not null, a transition or loadPano is occuring.

Why checking it on a time based? For what I can imagine, the only moment you need to know if your fpp child is busy is when you want to load a new pano (or execute a pan/tilt or call a global fct) from your parent movie. Thus, in your function that loads the pano, before sending the command, retrieve the value of pano2.panoName. If the result is not null, then don't send your command (loadPano, pan/tilt, anything).

hope it helped.
Reply With Quote
  #6  
Old 11-11-2008, 07:18 AM
Jareish Jareish is offline
Member
 
Join Date: May 2008
Posts: 56
Downloads: 0
Uploads: 0
Default

I've tried this in the funciton that executes a panoramaload:
PHP Code:
if(panorama.pano2.panoName != null)
    {
             [...]
        }
And get this error
PHP Code:
ReferenceError: Error #1069: Property pano2 not found on PanoController and there is no default value.
    
at fpp_fla::MainTimeline/doPanos()
panorama.pano2 doesn't excist apperently, so I changed it to panorama.pano.panoName, and then I get the error that panoName doesn't excist.
Reply With Quote
  #7  
Old 11-11-2008, 08:56 AM
nidrig nidrig is offline
Senior Member
 
Join Date: Sep 2007
Location: Switzerland
Posts: 147
Downloads: 1
Uploads: 0
Default

hi,

I've always been calling pano2 from a localConnection, doing it the way you does is more complicated.

I reversed engineered both pano.swf and hotspots.swf, as the doc failed to provide the information I needed.

Here is the wroking solution I found. If anyone knows how to it better, I would gratefully see it. I'm still learning fpp.

Here it goes.

Basically, you have two ways to interact with the panorama; from the panoObject itself that you retrieve from the loader and from the hotspot plugin that stores a ref to the loaded pano.

The panoObject stores no information about transition and second pano.

The hotspot plugin, on the other hands, has all the information we need, like a transition occurs.

What I missed completely, is the aim of Denis architecture; how were the hotspots data supposed to be accessed? via external or local connection? directly accessing the hotspot public functions? both? as the public functions of the hotspot plugin aren't documented at all, I'm not sure there were meant to be access that way.

Anyway, here is the code:

Code:
 if (panorama.externals.hotspots!=null) {
		  var pano2:Object=panorama.externals.hotspots.getLink(["pano2"]);
                if (pano2 != null) {
                     // transition
               }
               
		
	   }
You can replace pano2 by pano and get, for instance; pano.panoname (beware of the syntax, there's no capital letter!).

Good luck.
Reply With Quote
Reply

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 04:44 PM.


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