You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

gongdeming

Beginner

  • "gongdeming" started this thread

Posts: 21

Location: WuHan HuBei China

  • Send private message

1

Monday, November 7th 2011, 5:24am

as3-interface AIR development,how to resolve domain name restrictions?

as3-interface AIR development,how to resolve domain name restrictions?



gongdeming

Beginner

  • "gongdeming" started this thread

Posts: 21

Location: WuHan HuBei China

  • Send private message

2

Monday, November 7th 2011, 8:06am

trace( loaderInfo.loaderURL);// app:/qj.swf

gongdeming

Beginner

  • "gongdeming" started this thread

Posts: 21

Location: WuHan HuBei China

  • Send private message

3

Monday, November 7th 2011, 8:08am

*smile*

nelk

Intermediate

Posts: 358

Location: Paris

  • Send private message

4

Monday, November 7th 2011, 10:08am

Hi,

What are you trying to do exactly ?
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

5

Monday, November 7th 2011, 10:20am

Hi,

a domain is not the name of the swf file - domain is the 'name' of the webpage, e.g. 'krpano.com',

why do you want to use a domain limitations inside AIR?
so far I know AIR applications are offline/local applications?

maybe try it without domain limitations...

best regards,
Klaus

gongdeming

Beginner

  • "gongdeming" started this thread

Posts: 21

Location: WuHan HuBei China

  • Send private message

6

Tuesday, November 8th 2011, 3:59am





Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
var krpano:Object = null;
function krpano_load():void{	
	var krpanoloader = new Loader();	
	krpanoloader.contentLoaderInfo.addEventListener(Event.COMPLETE, krpano_load_complete);
	 krpanoloader.load(new URLRequest("krpano.swf"));
}
function krpano_load_complete(event:Event):void{	
	 (event.target.content as Object).embeddedstartup(stage, krpano_ready);
}
krpano_load();
function krpano_ready(krpanointerface:Object):void{	
	krpano = krpanointerface;	
	var area:Object = krpano.get("area");
	area.x      = 0;
	area.y      = 0;	
	area.width  = 480;	
	area.height = 800; 
}



Adobe Flash CS5.5 AIR for android



7

Wednesday, June 20th 2012, 4:32am

Is now ok, and you use 1.0.12 or later like

Similar threads