Create a 360° panorama viewer with AS3

1. Create a new flash file (Actionscript 3.0) and save it as panorama.fla.

2. Rename “layer 1″ to “preload”. With the Text tool selected put a Text box in the middle of the stage. Set its type as Dynamic text and give it an instance name of “percent”.

3. Next create an “actions” layer and with the first frame selected open the actions panel.
First we need to load our external 360° panorama image :
view source
print?

{code type=codetype}
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
loader.load(new URLRequest(“panorama.jpg”));

{/code}

View tutorial complete (Source http://www.riacodes.com )