![]() |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
Thanks nidrig!
I´m going to try it right now. |
|
#4
|
|||
|
|||
|
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?
|
|
#5
|
|||
|
|||
|
Quote:
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. |
|
#6
|
|||
|
|||
|
I've tried this in the funciton that executes a panoramaload:
PHP Code:
PHP Code:
|
|
#7
|
|||
|
|||
|
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
}
}
Good luck. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|