embedding PanSalado in a Flash movie

I'm trying to figure out how to embed the PanSalado player into a Flash application. I tried the tutorial on FPP without realizing that apparently FPP and PanSalado are very different animals. I'm pretty confused by what's going on here... can anyone help me?

I want to have the panorama load within another Flash movie.

Any help or pointers to tutorials is appreciated.

Hi! This works for

Hi!

This works for me:

package {

/**
* Pano Salado Pruebas.
*
* @langversion ActionScript 3.0
* @playerversion Flash 9.0
*
* @author Iban Moreno
* @since 05.11.2008
*/

import flash.events.*;
import flash.display.*;
import flash.xml.*;
import flash.net.*;

public class Catedral extends Sprite {

//--------------------------------------
// CONSTANTES
//--------------------------------------
var panorama:MovieClip;
var cargador:Loader;
//--------------------------------------
// CONSTRUCTOR
//--------------------------------------

/**
* @Constructor
*/
public function Catedral(){
super();
cargador = new Loader();
cargador.load(new URLRequest("ModuleLoader.swf"));
addChild(cargador);
cargador.contentLoaderInfo.addEventListener(Event.COMPLETE, panoCargado);
}

private function panoCargado(e:Event):void
{
panorama = cargador.content as MovieClip;
panorama.setArea(0,0,stage.stageWidth,stage.stageHeight);
}
}

}

Hope this can be useful for you.

Making a Pano Interface

I'm trying to make a panorama player using PanoSalado, but am having a difficult time. If you want a visual, here are the beginnings of the swf i'm trying to use:
http://www.samuelisenhower.net/panosalado/custom_design.swf

Here was my plan:

Name all the instances of the buttons in custom_interface.swf. Import the custom_interface.swf into the UserInterface.fla library, and then drag custom_interface.swf from the library into the one and only frame in Container. Then, in UserInterface.as, rename all the nav buttons to the appropriate instance names from my custom interface. For example:

buttons_container.custom_interface.customzoom.addEventListener(MouseEvent.MOUSE_DOWN, zoominPress, false, 0, true);

Of course, the navs on the left, which are supposed to be buttons to load particular panos, would be coded something more like:

buttons_container.custom_interface.FirstPano.addEventListener(MouseEvent.CLICK,loadFirstPano);
function loadFirstPano(e:MouseEvent):void {
        panoSalado.execute("loadSpace:first;");
}

Then, ideally, the buttons in the custom_interface would implement their original actionscript within the custom_interface movie AND they would trigger the appropriate actions for navigating the pano.

Anyone out there who is not as much an idiot as I am knows that this won't work. D Oh My actionscript knowledge is very limited. I know I'm way off base and am really just shooting in the dark here. Is there someone who can help me?

BTW, thanks to aeroshock for the panoSalado.execute("loadSpace:first;"); line. Smile