hi everybody
i'm very new at Pano... i'm playing with it to understand if it's usefull for my job...
I create with the demo version of PANO2VR a simple test.swf no hot spot no parameter setted... a simple draggable photo
after in Flash i wrote:
var vr:MovieClip = _root.createEmptyMovieClip("vr", 1);
vr._lockroot=true;
// move the upper left corner
vr._x=100;
vr._y=200;
var myLoader = new MovieClipLoader();
var myListener = new Object();
myListener.onLoadInit = function () {
// your initalisation of the pano, add Hotspots,... f.e
vr.pano.setWindowSize(500,400);
};
myLoader.addListener(myListener);
myLoader.loadClip("tet.swf", vr);
pubblished in As2... but nothing happened... what i'm doing wrong??
if i load some demo file i founded in this web site it works!!
what they have different by my sample.swf created in Pano2VR???
thanks!
loading A panoVR into flash (newbie)
oooohhhh S°#t!
the same problem again... so i thought to had found solution ...but no
please help!
i attach 2 files: 1 it's a Pano Swf (view.swf), the other is the loader made in FLash... why it doesn't work again.....
http://www.rso-file.net/public/__ERBA/forumPANO.zip
the same problem again... so i thought to had found solution ...but no
please help!
i attach 2 files: 1 it's a Pano Swf (view.swf), the other is the loader made in FLash... why it doesn't work again.....
http://www.rso-file.net/public/__ERBA/forumPANO.zip
i'm doing a personal forum...
hope this help:
It seemes if i export the PANO SWF in Flash 9/10, the flash loading works only with the AS3 LOADER. IT DOES NOT SUPPORT AS2 loader (as The Document Flash API shows)
it means... this works:
import flash.display.*;
import flash.net.URLRequest;
import flash.events.Event;
var loader:Loader;
loader = new Loader();
var url:String = "park.swf";
var urlReq:URLRequest = new URLRequest(url);
var vr:MovieClip;
// This is done after the swf is loaded.
function finished_loading (e:Event) {
}
function initHandler(event:Event):void {
trace("initHandler: " + event);
vr = MovieClip(loader.content); // cast 'DisplayObject' to 'MovieClip'
vr.pano.setWindowSize(200,100);
}
// Tell the loader to call 'finished_loading' after the swf is loaded.
loader.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, finished_loading);
loader.contentLoaderInfo.addEventListener(Event.INIT, initHandler);
loader.load(urlReq);
addChild(loader); // add your swf directly to the stage
this NO more:
var vr:MovieClip = _root.createEmptyMovieClip("vr", 1);
vr._lockroot=true;
// move the upper left corner
vr._x=100;
vr._y=200;
var myLoader = new MovieClipLoader();
var myListener = new Object();
myListener.onLoadStart = function () {
// Set the dimensions and position of the pano
vr.window_width=500;
vr.window_height=380;
vr.window_x=100;
vr.window_y=10;
};
myListener.onLoadInit = function () {
// your initalisation of the pano, add Hotspots,...
// You can also set the window size here but you need to use the API
vr.pano.setWindowSize(500,380);
};
myLoader.addListener(myListener);
myLoader.loadClip("mypanorama.swf", vr);
so it seems we have to export in Flash 8(...so we cannot use the GGSK file) to load in a Flash movie working with AS2
am i wrong?
hope this help:
It seemes if i export the PANO SWF in Flash 9/10, the flash loading works only with the AS3 LOADER. IT DOES NOT SUPPORT AS2 loader (as The Document Flash API shows)
it means... this works:
import flash.display.*;
import flash.net.URLRequest;
import flash.events.Event;
var loader:Loader;
loader = new Loader();
var url:String = "park.swf";
var urlReq:URLRequest = new URLRequest(url);
var vr:MovieClip;
// This is done after the swf is loaded.
function finished_loading (e:Event) {
}
function initHandler(event:Event):void {
trace("initHandler: " + event);
vr = MovieClip(loader.content); // cast 'DisplayObject' to 'MovieClip'
vr.pano.setWindowSize(200,100);
}
// Tell the loader to call 'finished_loading' after the swf is loaded.
loader.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, finished_loading);
loader.contentLoaderInfo.addEventListener(Event.INIT, initHandler);
loader.load(urlReq);
addChild(loader); // add your swf directly to the stage
this NO more:
var vr:MovieClip = _root.createEmptyMovieClip("vr", 1);
vr._lockroot=true;
// move the upper left corner
vr._x=100;
vr._y=200;
var myLoader = new MovieClipLoader();
var myListener = new Object();
myListener.onLoadStart = function () {
// Set the dimensions and position of the pano
vr.window_width=500;
vr.window_height=380;
vr.window_x=100;
vr.window_y=10;
};
myListener.onLoadInit = function () {
// your initalisation of the pano, add Hotspots,...
// You can also set the window size here but you need to use the API
vr.pano.setWindowSize(500,380);
};
myLoader.addListener(myListener);
myLoader.loadClip("mypanorama.swf", vr);
so it seems we have to export in Flash 8(...so we cannot use the GGSK file) to load in a Flash movie working with AS2
am i wrong?