Kallikanzaros
04-13-2007, 01:03 AM
Hi!
Thanks for a great application.
however, i can't get the embed script to work in flash.
This is the code:
var panorama:MovieClip;
var loader:Loader = new Loader();
loader.load(new URLRequest("rpano.swf"));
addChild(loader);
loader.contentLoaderInfo.addEventListener(Event.CO MPLETE, loadComplete);
function loadComplete (e:Event) {
swapChildren(loader, border);
panorama = loader.content;
panorama.setArea(100,50,400,300);
panorama.loadPanorama("rpano.swf?xml_file=rpano.xml");
}
and this is the error message:
"**Error** Scene=Scene 1, layer=actions, frame=1:Line 2: The class or interface 'Loader' could not be loaded.
var loader:Loader = new Loader();
**Error** Scene=Scene 1, layer=actions, frame=1:Line 8: The class or interface 'Event' could not be loaded.
function loadComplete (e:Event) {
Total ActionScript Errors: 2 Reported Errors: 2"
anyone who knows what i am doing wrong? i am using the Flash 9 Public Alpha.
best wishes
k
Thanks for a great application.
however, i can't get the embed script to work in flash.
This is the code:
var panorama:MovieClip;
var loader:Loader = new Loader();
loader.load(new URLRequest("rpano.swf"));
addChild(loader);
loader.contentLoaderInfo.addEventListener(Event.CO MPLETE, loadComplete);
function loadComplete (e:Event) {
swapChildren(loader, border);
panorama = loader.content;
panorama.setArea(100,50,400,300);
panorama.loadPanorama("rpano.swf?xml_file=rpano.xml");
}
and this is the error message:
"**Error** Scene=Scene 1, layer=actions, frame=1:Line 2: The class or interface 'Loader' could not be loaded.
var loader:Loader = new Loader();
**Error** Scene=Scene 1, layer=actions, frame=1:Line 8: The class or interface 'Event' could not be loaded.
function loadComplete (e:Event) {
Total ActionScript Errors: 2 Reported Errors: 2"
anyone who knows what i am doing wrong? i am using the Flash 9 Public Alpha.
best wishes
k